mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/cpufeature: Reposition cpu_has_{lfence_dispatch,nscb}
LFENCE_DISPATCH used to be a synthetic feature, but was given a real CPUID bit
by AMD. The define wasn't moved when this was changed.
NSCB has always been a real CPUID bit, and was misplaced when introduced in
the synthetic block alongside LFENCE_DISPATCH.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 6a039b0500)
This commit is contained in:
1 parent
ab248a130e
commit
f116c072cd
1 file changed
+4
-2
@@ -194,6 +194,10 @@ static inline bool boot_cpu_has(unsigned int feat)
|
||||
#define cpu_has_avx512_bf16 boot_cpu_has(X86_FEATURE_AVX512_BF16)
|
||||
#define cpu_has_avx_ifma boot_cpu_has(X86_FEATURE_AVX_IFMA)
|
||||
|
||||
/* CPUID level 0x80000021.eax */
|
||||
#define cpu_has_lfence_dispatch boot_cpu_has(X86_FEATURE_LFENCE_DISPATCH)
|
||||
#define cpu_has_nscb boot_cpu_has(X86_FEATURE_NSCB)
|
||||
|
||||
/* CPUID level 0x00000007:1.edx */
|
||||
#define cpu_has_avx_vnni_int8 boot_cpu_has(X86_FEATURE_AVX_VNNI_INT8)
|
||||
#define cpu_has_avx_ne_convert boot_cpu_has(X86_FEATURE_AVX_NE_CONVERT)
|
||||
@@ -223,8 +227,6 @@ static inline bool boot_cpu_has(unsigned int feat)
|
||||
#define cpu_has_arch_perfmon boot_cpu_has(X86_FEATURE_ARCH_PERFMON)
|
||||
#define cpu_has_cpuid_faulting boot_cpu_has(X86_FEATURE_CPUID_FAULTING)
|
||||
#define cpu_has_aperfmperf boot_cpu_has(X86_FEATURE_APERFMPERF)
|
||||
#define cpu_has_lfence_dispatch boot_cpu_has(X86_FEATURE_LFENCE_DISPATCH)
|
||||
#define cpu_has_nscb boot_cpu_has(X86_FEATURE_NSCB)
|
||||
#define cpu_has_xen_lbr boot_cpu_has(X86_FEATURE_XEN_LBR)
|
||||
#define cpu_has_xen_shstk (IS_ENABLED(CONFIG_XEN_SHSTK) && \
|
||||
boot_cpu_has(X86_FEATURE_XEN_SHSTK))
|
||||
|
||||