linux/Documentation/admin-guide/hw-vuln
Borislav Petkov e5a3331a2e x86/bugs: KVM: Add support for SRSO_MSR_FIX
commit 8442df2b49 upstream.

Add support for

  CPUID Fn8000_0021_EAX[31] (SRSO_MSR_FIX). If this bit is 1, it
  indicates that software may use MSR BP_CFG[BpSpecReduce] to mitigate
  SRSO.

Enable BpSpecReduce to mitigate SRSO across guest/host boundaries.

Switch back to enabling the bit when virtualization is enabled and to
clear the bit when virtualization is disabled because using a MSR slot
would clear the bit when the guest is exited and any training the guest
has done, would potentially influence the host kernel when execution
enters the kernel and hasn't VMRUN the guest yet.

More detail on the public thread in Link below.

Co-developed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241202120416.6054-1-bp@kernel.org
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-09-25 11:13:49 +02:00
..
core-scheduling.rst admin-guide/hw-vuln/core-scheduling: fix return type of PR_SCHED_CORE_GET 2024-04-24 13:04:27 -06:00
cross-thread-rsb.rst Documentation/hw-vuln: Fix rST warning 2023-02-15 07:24:23 -05:00
gather_data_sampling.rst Documentation/x86: Fix backwards on/off logic about YMM support 2023-08-01 15:28:24 -07:00
index.rst Documentation/hw-vuln: Add VMSCAPE documentation 2025-09-11 17:21:45 +02:00
indirect-target-selection.rst Documentation: x86/bugs/its: Add ITS documentation 2025-05-18 08:24:59 +02:00
l1d_flush.rst Documentation: Add L1D flushing Documentation 2021-07-28 11:42:25 +02:00
l1tf.rst docs: add IRQ documentation at the core-api book 2020-05-15 12:00:56 -06:00
mds.rst docs/hw-vuln: Update desc of best effort mode 2023-10-10 13:35:55 -06:00
multihit.rst x86/bugs/multihit: Fix mitigation reporting when VMX is not in use 2020-08-07 01:32:00 +02:00
processor_mmio_stale_data.rst x86/bugs: Rename MDS machinery to something more generic 2025-07-10 16:05:14 +02:00
reg-file-data-sampling.rst Documentation/hw-vuln: Add documentation for RFDS 2024-03-11 13:13:46 -07:00
special-register-buffer-data-sampling.rst docs: admin-guide: hw-vuln: avoid using ReST :doc:foo markup 2021-06-17 13:24:36 -06:00
spectre.rst x86/bugs: Remove duplicate Spectre cmdline option descriptions 2024-06-28 15:28:38 +02:00
srso.rst x86/bugs: KVM: Add support for SRSO_MSR_FIX 2025-09-25 11:13:49 +02:00
tsx_async_abort.rst docs/hw-vuln: Update desc of best effort mode 2023-10-10 13:35:55 -06:00
vmscape.rst Documentation/hw-vuln: Add VMSCAPE documentation 2025-09-11 17:21:45 +02:00