Commit 725bf00a authored by Committed by Jan Beulich
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 <email@example.com> Reviewed-by: Jan Beulich <firstname.lastname@example.org> Reviewed-by: Kevin Tian <email@example.com> Reviewed-by: Roger Pau Monné <firstname.lastname@example.org> Reviewed-by: George Dunlap <email@example.com>
Showing with 92 additions and 137 deletions
Please register or sign in to comment