x86/iommu: convert AMD IOMMU code to use new page table allocator
authorPaul Durrant <pdurrant@amazon.com>
Tue, 4 Aug 2020 13:41:59 +0000 (14:41 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Aug 2020 15:14:21 +0000 (16:14 +0100)
commitc4bdb646f47a09d4f18496570cd1f7cab84acce0
tree80d66268c817ffbd55b108ad8e9ea5f8b2fd3f76
parent15bc9a1ef51c4e0f9786eb143e9d43a657e7d239
x86/iommu: convert AMD IOMMU code to use new page table allocator

This patch converts the AMD IOMMU code to use the new page table allocator
function. This allows all the free-ing code to be removed (since it is now
handled by the general x86 code) which reduces TLB and cache thrashing as well
as shortening the code.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/iommu.h
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/amd/pci_amd_iommu.c