KVM: arm64: Refcount hyp stage-1 pgtable pages
authorQuentin Perret <qperret@google.com>
Wed, 15 Dec 2021 16:12:19 +0000 (16:12 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 16 Dec 2021 12:58:55 +0000 (12:58 +0000)
commit2ea2ff91e82293909d4879b0b4c6c94b02d52b7e
tree73399b1522cc9227e84a46f3273097ff3fda9f9c
parent1fac3cfb9cc60d71b66ee5127b2bc5b5f9f79df8
KVM: arm64: Refcount hyp stage-1 pgtable pages

To prepare the ground for allowing hyp stage-1 mappings to be removed at
run-time, update the KVM page-table code to maintain a correct refcount
using the ->{get,put}_page() function callbacks.

Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211215161232.1480836-3-qperret@google.com
arch/arm64/kvm/hyp/pgtable.c