All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 0/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default
@ 2024-10-21 10:57 Kirill A. Shutemov
  2024-10-21 10:57 ` [PATCHv2 1/2] memremap: Pass down MEMREMAP_* flags to arch_memremap_wb() Kirill A. Shutemov
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Kirill A. Shutemov @ 2024-10-21 10:57 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

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.

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

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] 25+ messages in thread

end of thread, other threads:[~2025-01-13 12:24 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-21 10:57 [PATCHv2 0/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default Kirill A. Shutemov
2024-10-21 10:57 ` [PATCHv2 1/2] memremap: Pass down MEMREMAP_* flags to arch_memremap_wb() Kirill A. Shutemov
2024-10-21 10:57 ` [PATCHv2 2/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default Kirill A. Shutemov
2024-11-18 16:46   ` Borislav Petkov
2024-11-18 16:46     ` Borislav Petkov
2024-11-19  8:21     ` Kirill A. Shutemov
2024-11-19  8:21       ` Kirill A. Shutemov
2024-11-21 11:49       ` Borislav Petkov
2024-11-21 11:49         ` Borislav Petkov
2024-12-10 13:26         ` Kirill A. Shutemov
2024-12-10 13:26           ` Kirill A. Shutemov
2024-12-12 14:23           ` Tom Lendacky
2024-12-12 14:23             ` Tom Lendacky
2024-12-13 11:59             ` Kirill A. Shutemov
2024-12-13 11:59               ` Kirill A. Shutemov
2025-01-13 10:03           ` [PATCHv2 2/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by defaultk Kirill A. Shutemov
2025-01-13 10:03             ` Kirill A. Shutemov
2025-01-13 10:32             ` Borislav Petkov
2025-01-13 10:32               ` Borislav Petkov
2025-01-13 12:22               ` Kirill A. Shutemov
2025-01-13 12:22                 ` Kirill A. Shutemov
2024-10-29 15:11 ` [PATCHv2 0/2] x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default Kirill A. Shutemov
2024-10-29 15:11   ` Kirill A. Shutemov
2024-11-18  9:43   ` Kirill A. Shutemov
2024-11-18  9:43     ` Kirill A. Shutemov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.