mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
b1e08f7bd8
commit
295f4c8bc2
1 file changed
+3
-1
@@ -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 )
|
||||
|
||||