mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCHv3 0/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default
@ 2025-01-13 13:14 Kirill A. Shutemov
  2025-01-13 13:14 ` [PATCHv3 1/2] memremap: Pass down MEMREMAP_* flags to arch_memremap_wb() Kirill A. Shutemov
  2025-01-13 13:14 ` [PATCHv3 2/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default Kirill A. Shutemov
  0 siblings, 2 replies; 11+ messages in thread
From: Kirill A. Shutemov @ 2025-01-13 13:14 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin, Andy Lutomirski
  Cc: Albert Ou, Alexei Starovoitov, Andrea Parri, Arnd Bergmann,
	Daniel Borkmann, Eric Chan, Jason Gunthorpe, Kai Huang,
	Kefeng Wang, Kent Overstreet, Palmer Dabbelt, Paul Walmsley,
	Russell King, Samuel Holland, Suren Baghdasaryan, Yuntao Wang,
	linux-arm-kernel, linux-kernel, linux-riscv, Kirill A. Shutemov

From: "Kirill A. Shutemov" <kirill.shutemov@intel.com>

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.

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 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(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-01-14 15:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-13 13:14 [PATCHv3 0/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default Kirill A. Shutemov
2025-01-13 13:14 ` [PATCHv3 1/2] memremap: Pass down MEMREMAP_* flags to arch_memremap_wb() Kirill A. Shutemov
2025-01-13 18:42   ` [tip: x86/urgent] " tip-bot2 for Kirill A. Shutemov
2025-01-13 13:14 ` [PATCHv3 2/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default Kirill A. Shutemov
2025-01-13 18:41   ` [tip: x86/urgent] " tip-bot2 for Kirill A. Shutemov
2025-01-13 20:47   ` [PATCHv3 2/2] " Tom Lendacky
2025-01-13 20:55     ` Borislav Petkov
2025-01-14  7:27     ` Kirill A. Shutemov
2025-01-14 14:33       ` Tom Lendacky
2025-01-14 14:44         ` Kirill A. Shutemov
2025-01-14 15:06           ` Tom Lendacky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®