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:
Roger Pau Monné authored and Jan Beulich committed 2015-11-10 12:05:35 +01:00
1 parent bacf1ddc8d
commit 7ee5a150fc
1 file changed
+2 -1
+2 -1
View File
@@ -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);
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.