Skip to content

Commit 9ad613d

Browse files
committed
KVM: x86: Advertise SRSO_USER_KERNEL_NO to userspace
jira LE-4694 Rebuild_History Non-Buildable kernel-6.12.0-55.43.1.el10_0 commit-author Borislav Petkov (AMD) <bp@alien8.de> 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) <bp@alien8.de> Reviewed-by: Nikolay Borisov <nik.borisov@suse.com> Link: https://lore.kernel.org/r/20241202120416.6054-3-bp@kernel.org (cherry picked from commit 716f86b) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent d8c91b6 commit 9ad613d

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
@@ -815,7 +815,7 @@ void kvm_set_cpu_caps(void)
815815
kvm_cpu_cap_mask(CPUID_8000_0021_EAX,
816816
F(NO_NESTED_DATA_BP) | F(LFENCE_RDTSC) | 0 /* SmmPgCfgLock */ |
817817
F(NULL_SEL_CLR_BASE) | F(AUTOIBRS) | 0 /* PrefetchCtlMsr */ |
818-
F(WRMSR_XX_BASE_NS)
818+
F(WRMSR_XX_BASE_NS) | F(SRSO_USER_KERNEL_NO)
819819
);
820820

821821
kvm_cpu_cap_check_and_set(X86_FEATURE_SBPB);

0 commit comments

Comments
 (0)