]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: cpufeature: Handle NV_frac as a synonym of NV2
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Feb 2025 13:48:54 +0000 (13:48 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 24 Feb 2025 19:03:51 +0000 (11:03 -0800)
commit88aea41b9bc5f6cb325396c3311f581c5a1aad65
tree8106cc73b1560c14395e825db81c018766ff150f
parent0ad2507d5d93f39619fc42372c347d6006b64319
arm64: cpufeature: Handle NV_frac as a synonym of NV2

With ARMv9.5, an implementation supporting Nested Virtualization
is allowed to only support NV2, and to avoid supporting the old
(and useless) ARMv8.3 variant.

This is indicated by ID_AA64MMFR2_EL1.NV being 0 (as if NV wasn't
implemented) and ID_AA64MMFR4_EL1.NV_frac being 1 (indicating that
NV2 is actually supported).

Given that KVM only deals with NV2 and refuses to use the old NV,
detecting NV2 or NV_frac is what we need to enable it.

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