Skip to content

Commit 49c140d

Browse files
bp3tk0vsean-jc
authored andcommitted
KVM: x86: Sort CPUID_8000_0021_EAX leaf bits properly
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]>
1 parent f804dc6 commit 49c140d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arch/x86/kvm/cpuid.c

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

11531153
kvm_cpu_cap_init(CPUID_8000_0021_EAX,
11541154
F(NO_NESTED_DATA_BP),
1155+
F(WRMSR_XX_BASE_NS),
11551156
/*
11561157
* Synthesize "LFENCE is serializing" into the AMD-defined entry
11571158
* in KVM's supported CPUID, i.e. if the feature is reported as
@@ -1165,10 +1166,12 @@ void kvm_set_cpu_caps(void)
11651166
SYNTHESIZED_F(LFENCE_RDTSC),
11661167
/* SmmPgCfgLock */
11671168
F(NULL_SEL_CLR_BASE),
1169+
/* UpperAddressIgnore */
11681170
F(AUTOIBRS),
11691171
EMULATED_F(NO_SMM_CTL_MSR),
11701172
/* PrefetchCtlMsr */
1171-
F(WRMSR_XX_BASE_NS),
1173+
/* GpOnUserCpuid */
1174+
/* EPSF */
11721175
SYNTHESIZED_F(SBPB),
11731176
SYNTHESIZED_F(IBPB_BRTYPE),
11741177
SYNTHESIZED_F(SRSO_NO),

0 commit comments

Comments
 (0)