Re: [PATCH] iommu/vt-d: Fix IOMMU lookup for VF's
From: David Woodhouse
Date: Sun Oct 30 2016 - 14:28:15 EST
On Fri, 2016-10-21 at 15:32 -0700, Ashok Raj wrote:
> IOMMU driver must pick the same IOMMU as that of a Physical Function (PF) for
> any of its Virtual Functions (VF). It is not practical to list all the VF's
> in the DMAR scope, as this list could be quite large. Linux also ignores any
> VF's listed in DMAR. See dmar_pci_bus_notifier() for virtfn handling.
>
> Since the driver is looking for the bdf of the VF, it will not find one from
> searching the DRHD listed in BIOS.ÂÂAs a result, the IOMMU driver associates
> the VF's under the INCLUDE_ALL iommu incorrectly.
>
> This patch looks up the IOMMU of the PF when handling VF's.
I've made some cosmetic fixesÂâ adding comments, and tweaking the
commit comment â and applied this to my tree. Thanks.
--
dwmw2
Attachment:
smime.p7s
Description: S/MIME cryptographic signature