Skip to content

Commit 34ec7cb

Browse files
willdeaconMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Quentin Perret <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d6b4bd3 commit 34ec7cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/kvm/hyp/nvhe/setup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ void __noreturn __pkvm_init_finalise(void)
257257
.virt_to_phys = hyp_virt_to_phys,
258258
.get_page = hpool_get_page,
259259
.put_page = hpool_put_page,
260+
.page_count = hyp_page_count,
260261
};
261262
pkvm_pgtable.mm_ops = &pkvm_pgtable_mm_ops;
262263

0 commit comments

Comments
 (0)