diff options
author | Kristina Martsenko <kristina.martsenko@arm.com> | 2023-05-09 16:22:26 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2023-06-05 18:05:26 +0200 |
commit | b0c756fe996ac930033882ca56410639e5cad1ec (patch) | |
tree | 3a6936a2d4e0acc4667945bde4d02c5a4da64444 /arch/arm64/tools/cpucaps | |
parent | KVM: arm64: initialize HCRX_EL2 (diff) | |
download | linux-b0c756fe996ac930033882ca56410639e5cad1ec.tar.xz linux-b0c756fe996ac930033882ca56410639e5cad1ec.zip |
arm64: cpufeature: detect FEAT_HCX
Detect if the system has the new HCRX_EL2 register added in ARMv8.7/9.2,
so that subsequent patches can check for its presence.
KVM currently relies on the register being present on all CPUs (or
none), so the kernel will panic if that is not the case. Fortunately no
such systems currently exist, but this can be revisited if they appear.
Note that the kernel will not panic if CONFIG_KVM is disabled.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
Link: https://lore.kernel.org/r/20230509142235.3284028-3-kristina.martsenko@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/tools/cpucaps')
-rw-r--r-- | arch/arm64/tools/cpucaps | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/tools/cpucaps b/arch/arm64/tools/cpucaps index 40ba95472594..e1de10fa080e 100644 --- a/arch/arm64/tools/cpucaps +++ b/arch/arm64/tools/cpucaps @@ -32,6 +32,7 @@ HAS_GENERIC_AUTH_IMP_DEF HAS_GIC_CPUIF_SYSREGS HAS_GIC_PRIO_MASKING HAS_GIC_PRIO_RELAXED_SYNC +HAS_HCX HAS_LDAPR HAS_LSE_ATOMICS HAS_NESTED_VIRT |