Skip to content

Commit a648bf4

Browse files
Suresh SiddhaIngo Molnar
authored andcommitted
x86, xsave: xsave cpuid feature bits
Add xsave CPU feature bits. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent bc588df commit a648bf4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎arch/x86/kernel/cpu/feature_names.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const char * const x86_cap_flags[NCAPINTS*32] = {
4646
"pni", NULL, NULL, "monitor", "ds_cpl", "vmx", "smx", "est",
4747
"tm2", "ssse3", "cid", NULL, NULL, "cx16", "xtpr", NULL,
4848
NULL, NULL, "dca", "sse4_1", "sse4_2", "x2apic", NULL, "popcnt",
49-
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
49+
NULL, NULL, "xsave", NULL, NULL, NULL, NULL, NULL,
5050

5151
/* VIA/Cyrix/Centaur-defined */
5252
NULL, NULL, "rng", "rng_en", NULL, NULL, "ace", "ace_en",

‎include/asm-x86/cpufeature.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
#define X86_FEATURE_XTPR (4*32+14) /* Send Task Priority Messages */
9393
#define X86_FEATURE_DCA (4*32+18) /* Direct Cache Access */
9494
#define X86_FEATURE_X2APIC (4*32+21) /* x2APIC */
95+
#define X86_FEATURE_XSAVE (4*32+26) /* XSAVE */
9596

9697
/* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001, word 5 */
9798
#define X86_FEATURE_XSTORE (5*32+ 2) /* on-CPU RNG present (xstore insn) */
@@ -191,6 +192,7 @@ extern const char * const x86_power_flags[32];
191192
#define cpu_has_arch_perfmon boot_cpu_has(X86_FEATURE_ARCH_PERFMON)
192193
#define cpu_has_pat boot_cpu_has(X86_FEATURE_PAT)
193194
#define cpu_has_x2apic boot_cpu_has(X86_FEATURE_X2APIC)
195+
#define cpu_has_xsave boot_cpu_has(X86_FEATURE_XSAVE)
194196

195197
#if defined(CONFIG_X86_INVLPG) || defined(CONFIG_X86_64)
196198
# define cpu_has_invlpg 1

0 commit comments

Comments
 (0)