Skip to content

Optionally flush L1D cache on context switch

Balbir Singh lkml 8 versions – Applied

Status from this message: The following commit has been merged into the x86/mm branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest3 patches 0 repliesApplied
  2. v66 patches 14 repliesApplied
  3. v56 patches 3 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v46 patches9 repliesSuperseded
v35 patches13 repliesSuperseded
v2 posting 2/24 patches12 repliesSuperseded
v2 RFC posting 1/24 patches4 repliesSuperseded
v1 RFC1 patch14 repliesSuperseded

Changes in v7 from the cover letter

- Split patch 5 from the previous series into two patches
- Reuse the prctl PR_GET/SET_SPECULATION_CTRL with PR_SPEC_L1D_FLUSH_OUT as the ctrl parameter
- Add the BUILD_BUG_ON that went missing that checks the placement of TIF_SPEC_L1D_FLUSH
- Update the documentation to reflect the changes

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/3x86/mm: Optionally flush L1D on context switcharch/x86/include/asm/thread_info.h arch/x86/mm/tlb.c+43 -50 replies
2/3prctl: Hook L1D flushing in via prctlarch/x86/kernel/cpu/bugs.c include/uapi/linux/prctl.h+29 -00 replies
3/3Documentation: Add L1D flushing DocumentationDocumentation/admin-guide/hw-vuln/index.rst Documentation/admin-guide/hw-vuln/l1d_flush.rst Documentation/userspace-api/spec_ctrl.rst+59 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchKees Cook
1/3
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/3] Optionally flush L1D cache on context switch

These are the remaining patches built on top of
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/log/?h=x86/mm

for the series posted at
https://lore.kernel.org/lkml/[email protected]/

Changelog v7
- Split patch 5 from the previous series into two patches
- Reuse the prctl PR_GET/SET_SPECULATION_CTRL with PR_SPEC_L1D_FLUSH_OUT as the ctrl parameter
- Add the BUILD_BUG_ON that went missing that checks the placement of TIF_SPEC_L1D_FLUSH
- Update the documentation to reflect the changes

Balbir Singh (3):
x86/mm: Optionally flush L1D on context switch
prctl: Hook L1D flushing in via prctl
Documentation: Add L1D flushing Documentation

 Documentation/admin-guide/hw-vuln/index.rst   |  1 +
 .../admin-guide/hw-vuln/l1d_flush.rst         | 51 +++++++++++++++++++
 Documentation/userspace-api/spec_ctrl.rst     |  7 +++
 arch/x86/include/asm/thread_info.h            |  9 +++-
 arch/x86/kernel/cpu/bugs.c                    | 28 ++++++++++
 arch/x86/mm/tlb.c                             | 39 ++++++++++++--
 include/uapi/linux/prctl.h                    |  1 +
 7 files changed, 131 insertions(+), 5 deletions(-)
 create mode 100644 Documentation/admin-guide/hw-vuln/l1d_flush.rst
Signature · 1 line
2.17.1