Skip to content

Commit 32c258a

Browse files
bp3tk0vgregkh
authored andcommitted
KVM: x86: Advertise SRSO_USER_KERNEL_NO to userspace
[ Upstream commit 716f86b ] SRSO_USER_KERNEL_NO denotes whether the CPU is affected by SRSO across user/kernel boundaries. Advertise it to guest userspace. Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Nikolay Borisov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Harshit Mogalapalli <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 81c5d23 commit 32c258a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/cpuid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ void kvm_set_cpu_caps(void)
816816
F(NO_NESTED_DATA_BP) | F(LFENCE_RDTSC) | 0 /* SmmPgCfgLock */ |
817817
F(VERW_CLEAR) |
818818
F(NULL_SEL_CLR_BASE) | F(AUTOIBRS) | 0 /* PrefetchCtlMsr */ |
819-
F(WRMSR_XX_BASE_NS)
819+
F(WRMSR_XX_BASE_NS) | F(SRSO_USER_KERNEL_NO)
820820
);
821821

822822
kvm_cpu_cap_check_and_set(X86_FEATURE_SBPB);

0 commit comments

Comments
 (0)