]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Introduce __pkvm_host_mkyoung_guest()
authorQuentin Perret <qperret@google.com>
Wed, 18 Dec 2024 19:40:56 +0000 (19:40 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 09:44:00 +0000 (09:44 +0000)
commit76f0b18b3db57868fb0cabe691201aad3085b712
treea3e3824f7f3216359a445db0e0ccf42ff89dfc7d
parent56ab4de37f4e13231e964cf7fa304818f791fea7
KVM: arm64: Introduce __pkvm_host_mkyoung_guest()

Plumb the kvm_pgtable_stage2_mkyoung() callback into pKVM for
non-protected guests. It will be called later from the fault handling
path.

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-16-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