KVM: arm64: Expose host stage-2 manipulation helpers
authorQuentin Perret <qperret@google.com>
Mon, 9 Aug 2021 15:24:40 +0000 (16:24 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 11 Aug 2021 10:39:50 +0000 (11:39 +0100)
commit39257da0e04e5cdb1e4a3ca715dc3d949fe8b059
tree06aa9e78d4f7abf6e97baa58d2dc00a4b0d75ffa
parentec250a67ea8db6209918a389554cf3aec0395b1f
KVM: arm64: Expose host stage-2 manipulation helpers

We will need to manipulate the host stage-2 page-table from outside
mem_protect.c soon. Introduce two functions allowing this, and make
them usable to users of mem_protect.h.

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-14-qperret@google.com
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h
arch/arm64/kvm/hyp/nvhe/mem_protect.c