]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1cf2c5032ab44f6934d90348406079095e1f9e69
tree2e78fb0617c110c845e8c34d5947d5354c3608c5
parentd83d6aea27692c0bbea8edb72303ab361cc90e48
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