KVM: arm64: Expose page-table helpers
authorQuentin Perret <qperret@google.com>
Mon, 9 Aug 2021 15:24:32 +0000 (16:24 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 11 Aug 2021 10:39:49 +0000 (11:39 +0100)
commit51add457733bbc4a442fc280d73d14bfe262e4a0
tree2e78fb0617c110c845e8c34d5947d5354c3608c5
parent1bac49d490cbc813f407a5c9806e464bf4a300c9
KVM: arm64: Expose page-table helpers

The KVM pgtable API exposes the kvm_pgtable_walk() function to allow
the definition of walkers outside of pgtable.c. However, it is not easy
to implement any of those walkers without some of the low-level helpers.
Move some of them to the header file to allow re-use from other places.

Signed-off-by: Quentin Perret <qperret@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210809152448.1810400-6-qperret@google.com
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/hyp/pgtable.c