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

In preparation for supporting stage-2 huge mappings for np-guest. Add a
nr_pages argument to the __pkvm_host_unshare_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-5-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