Skip to content

x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default

Kirill A. Shutemov linux-mm lkml stable 4 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. v4 Latest2 patches 0 repliesApplied
  2. v32 patches 6 repliesApplied
  3. v22 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Keep default-decrypted for SME machines;

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2memremap: Pass down MEMREMAP_* flags to arch_memremap_wb()arch/arm/include/asm/io.h arch/arm/mm/ioremap.c arch/arm/mm/nommu.c +2 more+7 -60 replies
2/2x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by defaultarch/x86/include/asm/io.h arch/x86/mm/ioremap.c+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCHv4 0/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default

Make memremap(MEMREMAP_WB) produce encrypted/private mapping by default unless MEMREMAP_DEC is specified.

It fixes crash on kexec in TDX guests if CONFIG_EISA is enabled.

v4:
- Keep default-decrypted for SME machines;
v3:
- Update commit message;
- Add Cc: stable;
v2:
- Fix sparse warning;

Kirill A. Shutemov (2):
memremap: Pass down MEMREMAP_* flags to arch_memremap_wb() x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by t

Kirill A. Shutemov (2):
memremap: Pass down MEMREMAP_* flags to arch_memremap_wb() x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default

 arch/arm/include/asm/io.h   | 2 +-
 arch/arm/mm/ioremap.c       | 2 +-
 arch/arm/mm/nommu.c         | 2 +-
 arch/riscv/include/asm/io.h | 2 +-
 arch/x86/include/asm/io.h   | 3 +++
 arch/x86/mm/ioremap.c       | 8 ++++++++
 kernel/iomem.c              | 5 +++--
 7 files changed, 18 insertions(+), 6 deletions(-)
Signature · 1 line
2.47.2