mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86: allow disabling the emulated IOMMU
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
This commit is contained in:
1 parent
bacf1ddc8d
commit
7ee5a150fc
1 file changed
+2
-1
@@ -887,7 +887,8 @@ int guest_iommu_init(struct domain* d)
|
||||
struct guest_iommu *iommu;
|
||||
struct hvm_iommu *hd = domain_hvm_iommu(d);
|
||||
|
||||
if ( !is_hvm_domain(d) || !iommu_enabled || !iommuv2_enabled )
|
||||
if ( !is_hvm_domain(d) || !iommu_enabled || !iommuv2_enabled ||
|
||||
!has_viommu(d) )
|
||||
return 0;
|
||||
|
||||
iommu = xzalloc(struct guest_iommu);
|
||||
|
||||