Skip to content

Commit f333374

Browse files
babumogerbonzini
authored andcommitted
x86/cpufeatures: Add the Virtual SPEC_CTRL feature
Newer AMD processors have a feature to virtualize the use of the SPEC_CTRL MSR. Presence of this feature is indicated via CPUID function 0x8000000A_EDX[20]: GuestSpecCtrl. When present, the SPEC_CTRL MSR is automatically virtualized. Signed-off-by: Babu Moger <babu.moger@amd.com> Acked-by: Borislav Petkov <bp@suse.de> Message-Id: <161188100272.28787.4097272856384825024.stgit@bmoger-ubuntu> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent cc3ed80 commit f333374

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/include/asm/cpufeatures.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@
336336
#define X86_FEATURE_AVIC (15*32+13) /* Virtual Interrupt Controller */
337337
#define X86_FEATURE_V_VMSAVE_VMLOAD (15*32+15) /* Virtual VMSAVE VMLOAD */
338338
#define X86_FEATURE_VGIF (15*32+16) /* Virtual GIF */
339+
#define X86_FEATURE_V_SPEC_CTRL (15*32+20) /* Virtual SPEC_CTRL */
339340
#define X86_FEATURE_SVME_ADDR_CHK (15*32+28) /* "" SVME addr check */
340341

341342
/* Intel-defined CPU features, CPUID level 0x00000007:0 (ECX), word 16 */

0 commit comments

Comments
 (0)