linux/Documentation/arch/x86
Pawan Gupta 6613d82e61 x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key
The VERW mitigation at exit-to-user is enabled via a static branch
mds_user_clear. This static branch is never toggled after boot, and can
be safely replaced with an ALTERNATIVE() which is convenient to use in
asm.

Switch to ALTERNATIVE() to use the VERW mitigation late in exit-to-user
path. Also remove the now redundant VERW in exc_nmi() and
arch_exit_to_user_mode().

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20240213-delay-verw-v8-4-a6216d83edb7%40linux.intel.com
2024-02-19 16:31:49 -08:00
..
i386
x86_64
amd_hsmp.rst platform/x86/amd/hsmp: add support for metrics tbl 2023-10-12 16:29:58 +03:00
amd-memory-encryption.rst x86/sev/docs: Update document URL in amd-memory-encryption.rst 2023-09-22 11:29:23 +02:00
boot.rst Another moderately busy cycle for documentation, including: 2024-01-11 19:46:52 -08:00
booting-dt.rst
buslock.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
cpuinfo.rst Documentation/x86: Document what /proc/cpuinfo is for 2023-12-09 08:52:53 +01:00
earlyprintk.rst
elf_auxvec.rst
entry_64.rst
exception-tables.rst
features.rst docs: kernel_feat.py: fix potential command injection 2024-01-11 09:21:01 -07:00
ifs.rst
index.rst Documentation/x86: Add CET shadow stack description 2023-08-02 15:01:50 -07:00
intel_txt.rst
intel-hfi.rst
iommu.rst x86/iommu/docs: Update AMD IOMMU specification document URL 2023-09-24 10:47:35 +02:00
kernel-stacks.rst
mds.rst x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key 2024-02-19 16:31:49 -08:00
microcode.rst
mtrr.rst
orc-unwinder.rst
pat.rst
pti.rst x86/docs: Remove reference to syscall trampoline in PTI 2023-12-12 14:43:59 +01:00
resctrl.rst x86/resctrl: Display RMID of resource group 2023-10-17 14:05:40 +02:00
sgx.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
shstk.rst x86/shstk: Add ARCH_SHSTK_STATUS 2023-08-02 15:01:51 -07:00
sva.rst
tdx.rst Documentation/x86: Add documentation for TDX host support 2023-12-12 08:46:46 -08:00
tlb.rst
topology.rst x86/cpu: Move cpu_l[l2]c_id into topology info 2023-10-10 14:38:18 +02:00
tsx_async_abort.rst
usb-legacy-support.rst
xstate.rst
zero-page.rst