KVM: arm64: nv: Fail KVM init if asking for NV without GICv3
authorMarc Zyngier <maz@kernel.org>
Tue, 25 Feb 2025 17:29:30 +0000 (17:29 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 3 Mar 2025 22:57:10 +0000 (14:57 -0800)
commit83c6cb20147b5ee22357f4604632df9f8ef3c17b
treec0707641e088bc40f7f904aa9a00c36b6265f92d
parentfaf7714a47a25c626ec7fdbd8e85c6bfcd565fdc
KVM: arm64: nv: Fail KVM init if asking for NV without GICv3

Although there is nothing in NV that is fundamentally incompatible
with the lack of GICv3, there is no HW implementation without one,
at least on the virtual side (yes, even fruits have some form of
vGICv3).

We therefore make the decision to require GICv3, which will only
affect models such as QEMU. Booting with a GICv2 or something
even more exotic while asking for NV will result in KVM being
disabled.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250225172930.1850838-17-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/arm.c