]> xenbits.xensource.com Git - xen.git/commit
VT-d: fix iommu=no-igfx if the IOMMU scope contains fake device(s)
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Fri, 31 Mar 2023 06:38:07 +0000 (08:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2023 06:38:07 +0000 (08:38 +0200)
commit07e8f5b3d1300327a9f2e67b03dead0e2138b92f
tree610935a0d2e3996ebd25e3c1016988d3937f26fd
parent8e9690a2252eda09537275a951ee0af0b3b330f2
VT-d: fix iommu=no-igfx if the IOMMU scope contains fake device(s)

If the scope for IGD's IOMMU contains additional device that doesn't
actually exist, iommu=no-igfx would not disable that IOMMU. In this
particular case (Thinkpad x230) it included 00:02.1, but there is no
such device on this platform. Consider only existing devices for the
"gfx only" check as well as the establishing of IGD DRHD address
(underlying is_igd_drhd(), which is used to determine applicability of
two workarounds).

Fixes: 2d7f191b392e ("VT-d: generalize and correct "iommu=no-igfx" handling")
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
master commit: 49de6749baa8d0addc3048defd4ef3e85cb135e9
master date: 2023-03-23 09:16:41 +0100
xen/drivers/passthrough/vtd/dmar.c