KVM: arm64: Add KVM_CAP_ARM_EAGER_SPLIT_CHUNK_SIZE
authorRicardo Koller <ricarkol@google.com>
Wed, 26 Apr 2023 17:23:23 +0000 (17:23 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 16 May 2023 17:39:18 +0000 (17:39 +0000)
commit2f440b72e852be428540579b5813ba2b8236578d
treec4be44262abb5c8da28ca42115b6ae7e885693d4
parent26f457142d7ee2da20a5b701862230e4961423d9
KVM: arm64: Add KVM_CAP_ARM_EAGER_SPLIT_CHUNK_SIZE

Add a capability for userspace to specify the eager split chunk size.
The chunk size specifies how many pages to break at a time, using a
single allocation. Bigger the chunk size, more pages need to be
allocated ahead of time.

Suggested-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Link: https://lore.kernel.org/r/20230426172330.1439644-6-ricarkol@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Documentation/virt/kvm/api.rst
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/mmu.c
include/uapi/linux/kvm.h