KVM: arm64: Hook up ->page_count() for hypervisor stage-1 page-table
authorWill Deacon <will@kernel.org>
Wed, 15 Dec 2021 16:12:21 +0000 (16:12 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 16 Dec 2021 12:58:56 +0000 (12:58 +0000)
commit34ec7cbf1ee0c45e66a0c24311bcd5b83b7109f5
tree8276c75f56ba5cd35b29558ec24c197b59fcce66
parentd6b4bd3f4897f3b60ac9e8c9e2f0300e739b3392
KVM: arm64: Hook up ->page_count() for hypervisor stage-1 page-table

kvm_pgtable_hyp_unmap() relies on the ->page_count() function callback
being provided by the memory-management operations for the page-table.

Wire up this callback for the hypervisor stage-1 page-table.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211215161232.1480836-5-qperret@google.com
arch/arm64/kvm/hyp/nvhe/setup.c