IOMMU: page table dumping adjustments
authorJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 08:56:25 +0000 (10:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 08:56:25 +0000 (10:56 +0200)
commitfd7e0b14a82b36bfb7941150f1cc84e682780525
tree38e8428428524afa3d6f740256febfff843e6fa1
parent3e910b648b99393561e7c523756c1ea49a6c1305
IOMMU: page table dumping adjustments

For one none of the three IOMMU implementations on Arm specify a dumping
hook. Generalize VT-d's "don't dump shared page tables" to cover for
this.

Further in the past I was told that on Arm in principle there could be
multiple different IOMMUs, and hence different domains' platform_ops
pointers could differ. Use each domain's ops for calling the dump hook.
(In the long run all uses of iommu_get_ops() would likely need to
disappear for this reason.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c