KVM: arm64: Add flags to kvm_hyp_memcache
authorVincent Donnefort <vdonnefort@google.com>
Thu, 13 Mar 2025 11:40:36 +0000 (11:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 14 Mar 2025 07:56:29 +0000 (00:56 -0700)
commitcf2d228da9a8140bd7227ca9093947d20e8ea39d
tree5682ae9705fabf94b95aa2028aa31a4957e66454
parent0ad2507d5d93f39619fc42372c347d6006b64319
KVM: arm64: Add flags to kvm_hyp_memcache

Add flags to kvm_hyp_memcache and propagate the latter to the allocation
and free callbacks. This will later allow to account for memory, based
on the memcache configuration.

Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250313114038.1502357-2-vdonnefort@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/mmu.c