Skip to content

Commit 91103d0

Browse files
committed
KVM: x86: Advertise SRSO_USER_KERNEL_NO to userspace
JIRA: https://issues.redhat.com/browse/RHEL-88224 commit 716f86b Author: Borislav Petkov (AMD) <bp@alien8.de> Date: Wed, 13 Nov 2024 13:28:33 +0100 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) <bp@alien8.de> Reviewed-by: Nikolay Borisov <nik.borisov@suse.com> Link: https://lore.kernel.org/r/20241202120416.6054-3-bp@kernel.org Signed-off-by: Waiman Long <longman@redhat.com>
1 parent 07e97d1 commit 91103d0

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)