arm64: cpufeature: Detect HCR_EL2.NV1 being RES0
authorMarc Zyngier <maz@kernel.org>
Mon, 22 Jan 2024 18:13:40 +0000 (18:13 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 8 Feb 2024 15:12:45 +0000 (15:12 +0000)
commitda9af5071b25cb81682c3506c96516fe55186577
tree1015531be5b652cb1f27df6fd6ddc5901bf66d21
parent805bb61f827997c59b92669ae8cc3740ebcf1087
arm64: cpufeature: Detect HCR_EL2.NV1 being RES0

A variant of FEAT_E2H0 not being implemented exists in the form of
HCR_EL2.E2H being RES1 *and* HCR_EL2.NV1 being RES0 (indicating that
only VHE is supported on the host and nested guests).

Add the necessary infrastructure for this new CPU capability.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20240122181344.258974-7-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kernel/cpufeature.c
arch/arm64/tools/cpucaps