]> xenbits.xensource.com Git - xen.git/commit
iommu / p2m: add a page_order parameter to iommu_map/unmap_page()...
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 21 Nov 2018 09:50:29 +0000 (10:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 21 Nov 2018 09:50:29 +0000 (10:50 +0100)
commit725bf00a87fb6db2cfcb89e9aaeee857cc4bc57e
treec15e017f693fcc0f3b606a4df992cb6e123745fe
parent29e284512f03e0b213372ebc4b983e5ef5994e29
iommu / p2m: add a page_order parameter to iommu_map/unmap_page()...

...and re-name them to iommu_map/unmap() since they no longer necessarily
operate on a single page.

The P2M code currently contains many loops to deal with the fact that,
while it may be require to handle page orders greater than 0, the
IOMMU map and unmap functions do not.
This patch adds a page_order parameter to those functions and implements
the necessary loops within. This allows the P2M code to be substantially
simplified.

This patch also adds emacs boilerplate to xen/iommu.h to avoid tabbing
problem.

NOTE: This patch does not modify the underlying vendor IOMMU
      implementations to deal with more than a single page at once.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
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/iommu.c
xen/drivers/passthrough/x86/iommu.c
xen/include/xen/iommu.h