diff options
| -rw-r--r-- | arch/x86/include/asm/cpufeature.h | 7 | ||||
| -rw-r--r-- | arch/x86/kernel/cpu/scattered.c | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h index 341835df7892..bffeab7eab97 100644 --- a/arch/x86/include/asm/cpufeature.h +++ b/arch/x86/include/asm/cpufeature.h | |||
| @@ -183,6 +183,13 @@ | |||
| 183 | #define X86_FEATURE_LBRV (8*32+ 6) /* AMD LBR Virtualization support */ | 183 | #define X86_FEATURE_LBRV (8*32+ 6) /* AMD LBR Virtualization support */ |
| 184 | #define X86_FEATURE_SVML (8*32+ 7) /* "svm_lock" AMD SVM locking MSR */ | 184 | #define X86_FEATURE_SVML (8*32+ 7) /* "svm_lock" AMD SVM locking MSR */ |
| 185 | #define X86_FEATURE_NRIPS (8*32+ 8) /* "nrip_save" AMD SVM next_rip save */ | 185 | #define X86_FEATURE_NRIPS (8*32+ 8) /* "nrip_save" AMD SVM next_rip save */ |
| 186 | #define X86_FEATURE_TSCRATEMSR (8*32+ 9) /* "tsc_scale" AMD TSC scaling support */ | ||
| 187 | #define X86_FEATURE_VMCBCLEAN (8*32+10) /* "vmcb_clean" AMD VMCB clean bits support */ | ||
| 188 | #define X86_FEATURE_FLUSHBYASID (8*32+11) /* AMD flush-by-ASID support */ | ||
| 189 | #define X86_FEATURE_DECODEASSISTS (8*32+12) /* AMD Decode Assists support */ | ||
| 190 | #define X86_FEATURE_PAUSEFILTER (8*32+13) /* AMD filtered pause intercept */ | ||
| 191 | #define X86_FEATURE_PFTHRESHOLD (8*32+14) /* AMD pause filter threshold */ | ||
| 192 | |||
| 186 | 193 | ||
| 187 | /* Intel-defined CPU features, CPUID level 0x00000007:0 (ebx), word 9 */ | 194 | /* Intel-defined CPU features, CPUID level 0x00000007:0 (ebx), word 9 */ |
| 188 | #define X86_FEATURE_FSGSBASE (9*32+ 0) /* {RD/WR}{FS/GS}BASE instructions*/ | 195 | #define X86_FEATURE_FSGSBASE (9*32+ 0) /* {RD/WR}{FS/GS}BASE instructions*/ |
diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c index 34b4dad6f0b8..2c77931473fb 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c | |||
| @@ -43,6 +43,12 @@ void __cpuinit init_scattered_cpuid_features(struct cpuinfo_x86 *c) | |||
| 43 | { X86_FEATURE_LBRV, CR_EDX, 1, 0x8000000a, 0 }, | 43 | { X86_FEATURE_LBRV, CR_EDX, 1, 0x8000000a, 0 }, |
| 44 | { X86_FEATURE_SVML, CR_EDX, 2, 0x8000000a, 0 }, | 44 | { X86_FEATURE_SVML, CR_EDX, 2, 0x8000000a, 0 }, |
| 45 | { X86_FEATURE_NRIPS, CR_EDX, 3, 0x8000000a, 0 }, | 45 | { X86_FEATURE_NRIPS, CR_EDX, 3, 0x8000000a, 0 }, |
| 46 | { X86_FEATURE_TSCRATEMSR, CR_EDX, 4, 0x8000000a, 0 }, | ||
| 47 | { X86_FEATURE_VMCBCLEAN, CR_EDX, 5, 0x8000000a, 0 }, | ||
| 48 | { X86_FEATURE_FLUSHBYASID, CR_EDX, 6, 0x8000000a, 0 }, | ||
| 49 | { X86_FEATURE_DECODEASSISTS, CR_EDX, 7, 0x8000000a, 0 }, | ||
| 50 | { X86_FEATURE_PAUSEFILTER, CR_EDX,10, 0x8000000a, 0 }, | ||
| 51 | { X86_FEATURE_PFTHRESHOLD, CR_EDX,12, 0x8000000a, 0 }, | ||
| 46 | { 0, 0, 0, 0, 0 } | 52 | { 0, 0, 0, 0, 0 } |
| 47 | }; | 53 | }; |
| 48 | 54 | ||
