summaryrefslogtreecommitdiff
path: root/Documentation/arch
diff options
context:
space:
mode:
authorBorislav Petkov (AMD) <bp@alien8.de>2024-09-11 05:13:46 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2025-06-16 18:45:18 +0200
commitf9af88a3d384c8b55beb5dc5483e5da0135fadbd (patch)
treee67f732a9271b26c821f3f7050901ae0ccd5bb88 /Documentation/arch
parente04c78d86a9699d136910cfc0bdcf01087e3267e (diff)
downloadlinux-f9af88a3d384c8b55beb5dc5483e5da0135fadbd.tar.gz
linux-f9af88a3d384c8b55beb5dc5483e5da0135fadbd.tar.bz2
linux-f9af88a3d384c8b55beb5dc5483e5da0135fadbd.zip
x86/bugs: Rename MDS machinery to something more generic
It will be used by other x86 mitigations. No functional changes. Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Diffstat (limited to 'Documentation/arch')
-rw-r--r--Documentation/arch/x86/mds.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/arch/x86/mds.rst b/Documentation/arch/x86/mds.rst
index 5a2e6c0ef04a..3518671e1a85 100644
--- a/Documentation/arch/x86/mds.rst
+++ b/Documentation/arch/x86/mds.rst
@@ -93,7 +93,7 @@ enters a C-state.
The kernel provides a function to invoke the buffer clearing:
- mds_clear_cpu_buffers()
+ x86_clear_cpu_buffers()
Also macro CLEAR_CPU_BUFFERS can be used in ASM late in exit-to-user path.
Other than CFLAGS.ZF, this macro doesn't clobber any registers.
@@ -185,9 +185,9 @@ Mitigation points
idle clearing would be a window dressing exercise and is therefore not
activated.
- The invocation is controlled by the static key mds_idle_clear which is
- switched depending on the chosen mitigation mode and the SMT state of
- the system.
+ The invocation is controlled by the static key cpu_buf_idle_clear which is
+ switched depending on the chosen mitigation mode and the SMT state of the
+ system.
The buffer clear is only invoked before entering the C-State to prevent
that stale data from the idling CPU from spilling to the Hyper-Thread