]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Stage-2 huge mappings for np-guests
authorVincent Donnefort <vdonnefort@google.com>
Wed, 21 May 2025 12:48:33 +0000 (13:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 21 May 2025 13:33:51 +0000 (14:33 +0100)
commitdb14091d8f75852d960b18834c7bdb1b7c2bb74f
tree871fc34ce79e320b995f74cf1b4015a5b17ea27f
parent3669ddd8fa8b5a46d96b9c54a6fa519a17e4a4fa
KVM: arm64: Stage-2 huge mappings for np-guests

Now np-guests hypercalls with range are supported, we can let the
hypervisor to install block mappings whenever the Stage-1 allows it,
that is when backed by either Hugetlbfs or THPs. The size of those block
mappings is limited to PMD_SIZE.

Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Link: https://lore.kernel.org/r/20250521124834.1070650-10-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/mem_protect.c
arch/arm64/kvm/mmu.c
arch/arm64/kvm/pkvm.c