]> xenbits.xensource.com Git - people/dariof/xen.git/commit
mm / iommu: include need_iommu() test in iommu_use_hap_pt()
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 5 Oct 2018 14:36:56 +0000 (16:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Oct 2018 14:36:56 +0000 (16:36 +0200)
commit2916951c1bb943e79bf965cde66a78b0e841455b
tree2288fbce3517a8df505a39f822ac95cff1e13893
parentdd93d54fef0b25ac7215c33449c19b103c460aba
mm / iommu: include need_iommu() test in iommu_use_hap_pt()

The name 'iommu_use_hap_pt' suggests that that P2M table is in use as the
domain's IOMMU pagetable which, prior to this patch, is not strictly true
since the macro did not test whether the domain actually has IOMMU
mappings.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/drivers/passthrough/iommu.c
xen/include/asm-arm/iommu.h
xen/include/asm-x86/iommu.h