Skip to content

Commit 79529e5

Browse files
bp3tk0vgregkh
authored andcommitted
KVM: x86: Sort CPUID_8000_0021_EAX leaf bits properly
Commit 49c140d upstream. WRMSR_XX_BASE_NS is bit 1 so put it there, add some new bits as comments only. Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: skip the FSRS/FSRC placeholders to avoid confusion] Signed-off-by: Sean Christopherson <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ab0f657 commit 79529e5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

arch/x86/kvm/cpuid.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,7 @@ void kvm_set_cpu_caps(void)
11641164

11651165
kvm_cpu_cap_init(CPUID_8000_0021_EAX,
11661166
F(NO_NESTED_DATA_BP),
1167+
F(WRMSR_XX_BASE_NS),
11671168
/*
11681169
* Synthesize "LFENCE is serializing" into the AMD-defined entry
11691170
* in KVM's supported CPUID, i.e. if the feature is reported as
@@ -1177,10 +1178,12 @@ void kvm_set_cpu_caps(void)
11771178
SYNTHESIZED_F(LFENCE_RDTSC),
11781179
/* SmmPgCfgLock */
11791180
F(NULL_SEL_CLR_BASE),
1181+
/* UpperAddressIgnore */
11801182
F(AUTOIBRS),
11811183
EMULATED_F(NO_SMM_CTL_MSR),
11821184
/* PrefetchCtlMsr */
1183-
F(WRMSR_XX_BASE_NS),
1185+
/* GpOnUserCpuid */
1186+
/* EPSF */
11841187
SYNTHESIZED_F(SBPB),
11851188
SYNTHESIZED_F(IBPB_BRTYPE),
11861189
SYNTHESIZED_F(SRSO_NO),

0 commit comments

Comments
 (0)