]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Introduce __pkvm_host_relax_guest_perms()
authorQuentin Perret <qperret@google.com>
Wed, 18 Dec 2024 19:40:53 +0000 (19:40 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 09:44:00 +0000 (09:44 +0000)
commit34884a0a4a53f9544f78e7e9556cb4d202e170d5
treed468505ad9cafb4b6a9971043ae2112274ca48e8
parent72db3d3fbaa77ba649201c9e9f9d1a54fa76b217
KVM: arm64: Introduce __pkvm_host_relax_guest_perms()

Introduce a new hypercall allowing the host to relax the stage-2
permissions of mappings in a non-protected guest page-table. It will be
used later once we start allowing RO memslots and 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-13-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