]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Allow userspace to limit NV support to nVHE
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Feb 2025 13:49:03 +0000 (13:49 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 24 Feb 2025 19:30:17 +0000 (11:30 -0800)
commitf83c41fb3dddbf47881249335a9718d2cdce0bd0
tree5b1a7d2a7f8eb268e079ccfad5e35e9df4d73b7c
parent94f296dcd6d937371dd83df048b9a2d723d357c9
KVM: arm64: Allow userspace to limit NV support to nVHE

NV is hard. No kidding.

In order to make things simpler, we have established that NV would
support two mutually exclusive configurations:

- VHE-only, and supporting recursive virtualisation

- nVHE-only, and not supporting recursive virtualisation

For that purpose, introduce a new vcpu feature flag that denotes
the second configuration. We use this flag to limit the idregs
further.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20250220134907.554085-11-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/uapi/asm/kvm.h
arch/arm64/kvm/nested.c