Skip to content

Commit 716f86b

Browse files
committed
KVM: x86: Advertise SRSO_USER_KERNEL_NO to userspace
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]
1 parent 8778188 commit 716f86b

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
@@ -821,7 +821,7 @@ void kvm_set_cpu_caps(void)
821821
kvm_cpu_cap_mask(CPUID_8000_0021_EAX,
822822
F(NO_NESTED_DATA_BP) | F(LFENCE_RDTSC) | 0 /* SmmPgCfgLock */ |
823823
F(NULL_SEL_CLR_BASE) | F(AUTOIBRS) | 0 /* PrefetchCtlMsr */ |
824-
F(WRMSR_XX_BASE_NS)
824+
F(WRMSR_XX_BASE_NS) | F(SRSO_USER_KERNEL_NO)
825825
);
826826

827827
kvm_cpu_cap_check_and_set(X86_FEATURE_SBPB);

0 commit comments

Comments
 (0)