Commit dc311243 authored by Oliver Upton's avatar Oliver Upton
Browse files

arm64: Detect FEAT_XNX



Detect the feature in anticipation of using it in KVM.

Reviewed-by: default avatarMarc Zyngier <maz@kernel.org>
Tested-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://msgid.link/20251124190158.177318-2-oupton@kernel.org


Signed-off-by: default avatarOliver Upton <oupton@kernel.org>
parent dcb6fa37
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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)
	},
	{},
};

+1 −0
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ HAS_TLB_RANGE
HAS_VA52
HAS_VIRT_HOST_EXTN
HAS_WFXT
HAS_XNX
HAFT
HW_DBM
KVM_HVHE