]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: Detect FEAT_XNX
authorOliver Upton <oupton@kernel.org>
Mon, 24 Nov 2025 19:01:43 +0000 (11:01 -0800)
committerOliver Upton <oupton@kernel.org>
Mon, 24 Nov 2025 22:24:44 +0000 (14:24 -0800)
Detect the feature in anticipation of using it in KVM.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Tested-by: Marc Zyngier <maz@kernel.org>
Link: https://msgid.link/20251124190158.177318-2-oupton@kernel.org
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/kernel/cpufeature.c
arch/arm64/tools/cpucaps

index 5ed401ff79e3e388b63825acbd156546cf91e103..aa3ecae252d32134fe91152df9363947c1f0e358 100644 (file)
@@ -3088,6 +3088,13 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
                .capability = ARM64_HAS_GICV5_LEGACY,
                .matches = test_has_gicv5_legacy,
        },
+       {
+               .desc = "XNX",
+               .capability = ARM64_HAS_XNX,
+               .type = ARM64_CPUCAP_SYSTEM_FEATURE,
+               .matches = has_cpuid_feature,
+               ARM64_CPUID_FIELDS(ID_AA64MMFR1_EL1, XNX, IMP)
+       },
        {},
 };
 
index 1b32c1232d28d86e44f99e3bde3d118624d33aec..ee74199107d3ab92a52a98b634b609e6f5c43e9a 100644 (file)
@@ -64,6 +64,7 @@ HAS_TLB_RANGE
 HAS_VA52
 HAS_VIRT_HOST_EXTN
 HAS_WFXT
+HAS_XNX
 HAFT
 HW_DBM
 KVM_HVHE