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

Introduce a new hypercall to remove the write permission from a
non-protected guest stage-2 mapping. This will be used for e.g. enabling
dirty logging.

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