AMD/IOMMU: replace all-contiguous page tables by superpage mappings
authorJan Beulich <jbeulich@suse.com>
Mon, 25 Jul 2022 13:41:12 +0000 (15:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 Jul 2022 13:41:12 +0000 (15:41 +0200)
commit0f91f75eb7ec589700c2c651b03d606bb19471dc
tree38ce4e39abf7a29ed5b4aadcbb07823dbff8d476
parent00c400edd7f5fed59f109b38522a47cae9943b22
AMD/IOMMU: replace all-contiguous page tables by superpage mappings

When a page table ends up with all contiguous entries (including all
identical attributes), it can be replaced by a superpage entry at the
next higher level. The page table itself can then be scheduled for
freeing.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/drivers/passthrough/amd/iommu_map.c