diff options
author | Will Deacon <will@kernel.org> | 2021-12-15 17:12:21 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-12-16 13:58:56 +0100 |
commit | 34ec7cbf1ee0c45e66a0c24311bcd5b83b7109f5 (patch) | |
tree | 8276c75f56ba5cd35b29558ec24c197b59fcce66 | |
parent | KVM: arm64: Fixup hyp stage-1 refcount (diff) | |
download | linux-34ec7cbf1ee0c45e66a0c24311bcd5b83b7109f5.tar.xz linux-34ec7cbf1ee0c45e66a0c24311bcd5b83b7109f5.zip |
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
-rw-r--r-- | arch/arm64/kvm/hyp/nvhe/setup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/setup.c b/arch/arm64/kvm/hyp/nvhe/setup.c index 875b5174342f..855a19056627 100644 --- a/arch/arm64/kvm/hyp/nvhe/setup.c +++ b/arch/arm64/kvm/hyp/nvhe/setup.c @@ -257,6 +257,7 @@ void __noreturn __pkvm_init_finalise(void) .virt_to_phys = hyp_virt_to_phys, .get_page = hpool_get_page, .put_page = hpool_put_page, + .page_count = hyp_page_count, }; pkvm_pgtable.mm_ops = &pkvm_pgtable_mm_ops; |