]> xenbits.xensource.com Git - xen.git/commit
iommu: make map and unmap take a page count, similar to flush
authorPaul Durrant <pdurrant@amazon.com>
Tue, 22 Sep 2020 08:22:30 +0000 (10:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Sep 2020 08:22:30 +0000 (10:22 +0200)
commit68a8aa5d7264dcb04b2c56fad24bdd5192fe5394
treed1ab551dc4cc003319a4bcecb7bbbe1f37df2802
parent0229adb138d732f579e80c96a032b19e692d6796
iommu: make map and unmap take a page count, similar to flush

At the moment iommu_map() and iommu_unmap() take a page order rather than a
count, whereas iommu_iotlb_flush() takes a page count rather than an order.
This patch makes them consistent with each other, opting for a page count since
CPU page orders are not necessarily the same as those of an IOMMU.

NOTE: The 'page_count' parameter is also made an unsigned long in all the
      aforementioned functions.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <julien@xen.org>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Wei Liu <wl@xen.org>
14 files changed:
xen/arch/x86/mm.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/x86_64/mm.c
xen/common/grant_table.c
xen/drivers/passthrough/amd/iommu.h
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/arm/ipmmu-vmsa.c
xen/drivers/passthrough/arm/smmu.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/x86/iommu.c
xen/include/xen/iommu.h