]> xenbits.xensource.com Git - people/iwj/xen.git/commit
iommu: tidy up iommu_use_hap_pt() and need_iommu_pt_sync() macros
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 25 Sep 2019 14:12:49 +0000 (16:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Sep 2019 14:12:49 +0000 (16:12 +0200)
commit80ff3d338dc93260b41ffeeebb0f852c2edef9ce
tree1a92fd803b58fa19ffb3d2f34e861e6f986d89e8
parentf89f555827a6634582ff78ef26e7167b2bddbbfa
iommu: tidy up iommu_use_hap_pt() and need_iommu_pt_sync() macros

Thes macros really ought to live in the common xen/iommu.h header rather
then being distributed amongst architecture specific iommu headers and
xen/sched.h. This patch moves them there.

NOTE: Disabling 'sharept' in the command line iommu options should really
      be hard error on ARM (as opposed to just being ignored), so define
      'iommu_hap_pt_share' to be true for ARM (via ARM-selected
      CONFIG_IOMMU_FORCE_PT_SHARE).

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/Kconfig
xen/drivers/passthrough/Kconfig
xen/include/asm-arm/iommu.h
xen/include/asm-x86/iommu.h
xen/include/xen/iommu.h
xen/include/xen/sched.h