diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index bc5b8f8ea3..c27dd4cd43 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -1050,7 +1050,8 @@ void cpuid_hypervisor_leaves(const struct vcpu *v, uint32_t leaf, * Indicate that memory mapped from other domains (either grants or * foreign pages) has valid IOMMU entries. */ - res->a |= XEN_HVM_CPUID_IOMMU_MAPPINGS; + if ( is_iommu_enabled(d) ) + res->a |= XEN_HVM_CPUID_IOMMU_MAPPINGS; /* Indicate presence of vcpu id and set it in ebx */ res->a |= XEN_HVM_CPUID_VCPU_ID_PRESENT;