]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: arm64: Introduce __pkvm_host_test_clear_young_guest()
authorQuentin Perret <qperret@google.com>
Wed, 18 Dec 2024 19:40:55 +0000 (19:40 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 09:44:00 +0000 (09:44 +0000)
commit56ab4de37f4e13231e964cf7fa304818f791fea7
treed04c8c081e51171fc69c6a1a031b22bd2313ac08
parent26117e4c636c813be4fa31e9ec9410b7d02ced5c
KVM: arm64: Introduce __pkvm_host_test_clear_young_guest()

Plumb the kvm_stage2_test_clear_young() callback into pKVM for
non-protected guest. It will be later be called from MMU notifiers.

Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20241218194059.3670226-15-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h
arch/arm64/kvm/hyp/nvhe/hyp-main.c
arch/arm64/kvm/hyp/nvhe/mem_protect.c