]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Add a range to __pkvm_host_wrprotect_guest()
authorVincent Donnefort <vdonnefort@google.com>
Wed, 21 May 2025 12:48:29 +0000 (13:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 21 May 2025 13:33:51 +0000 (14:33 +0100)
commit0eb802b3b4ecfb10046bc325f47e7fd741c72ffe
tree2abc528a08e24d0370b118997cd46d676dcd7d70
parentf28f1d02f4eaac05c2ad6bf7264a8696dc21d011
KVM: arm64: Add a range to __pkvm_host_wrprotect_guest()

In preparation for supporting stage-2 huge mappings for np-guest. Add a
nr_pages argument to the __pkvm_host_wrprotect_guest hypercall. This
range supports only two values: 1 or PMD_SIZE / PAGE_SIZE (that is 512
on a 4K-pages system).

Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Link: https://lore.kernel.org/r/20250521124834.1070650-6-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
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
arch/arm64/kvm/pkvm.c