vtd: refuse to enable IOMMU if the PCI scan fails

This provides uniform behavior between Intel and AMD IOMMU initialization, and
is a requirement for PVHv2 Dom0, that depends on a working IOMMU plus the PCI
bus being scanned for devices.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Roger Pau Monné authored and Jan Beulich committed 2016-12-02 18:09:11 +01:00
1 parent b1e08f7bd8
commit 295f4c8bc2
1 file changed
+3 -1
+3 -1
View File
@@ -2299,7 +2299,9 @@ int __init intel_vtd_setup(void)
P(iommu_hap_pt_share, "Shared EPT tables");
#undef P
scan_pci_devices();
ret = scan_pci_devices();
if ( ret )
goto error;
ret = init_vtd_hw();
if ( ret )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.