VT-d: have callers specify the target level for page table walks
authorJan Beulich <jbeulich@suse.com>
Fri, 22 Apr 2022 12:52:40 +0000 (14:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 Apr 2022 12:52:40 +0000 (14:52 +0200)
commitc71e55501a618d0443d2e07ef0e04edce74a0e5f
tree2c26912d5ac63c55ec4c0fc1a568e101f25e0106
parent5fafa6cf529a6c0cd0b12c920a2cc68a3cca99e1
VT-d: have callers specify the target level for page table walks

In order to be able to insert/remove super-pages we need to allow
callers of the walking function to specify at which point to stop the
walk.

For intel_iommu_lookup_page() integrate the last level access into
the main walking function.

dma_pte_clear_one() gets only partly adjusted for now: Error handling
and order parameter get put in place, but the order parameter remains
ignored (just like intel_iommu_map_page()'s order part of the flags).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c