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

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to