arm64: Add KVM_HVHE capability and has_hvhe() predicate
authorMarc Zyngier <maz@kernel.org>
Fri, 9 Jun 2023 16:21:47 +0000 (17:21 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 12 Jun 2023 23:17:23 +0000 (23:17 +0000)
commite2d6c906f0ac69559da887c0a2c3c10070e746c5
treefae40aa09fde93a947cb9927958e38d47d722a8a
parent0ddc312b7c73049d982d173fee4c5dabf1727ebb
arm64: Add KVM_HVHE capability and has_hvhe() predicate

Expose a capability keying the hVHE feature as well as a new
predicate testing it. Nothing is so far using it, and nothing
is enabling it yet.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20230609162200.2024064-5-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/virt.h
arch/arm64/kernel/cpufeature.c
arch/arm64/tools/cpucaps