Messages in this thread |  | | Subject | Re: [PATCH] iommu/vt-d: Fix IOMMU lookup for VF's | From | David Woodhouse <> | Date | Sun, 30 Oct 2016 06:10:06 -0600 |
| |
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
[unhandled content-type:application/x-pkcs7-signature] |  |