linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/2] x86: Fix boot with some memory above MAXMEM
@ 2020-06-08 12:54 Kirill A. Shutemov
  2020-06-08 12:54 ` [PATCHv2 1/2] x86/mm: " Kirill A. Shutemov
  2020-06-08 12:54 ` [PATCHv2 2/2] x86/boot/KASLR: Fix boot with some memory above MAXMEM Kirill A. Shutemov
  0 siblings, 2 replies; 6+ messages in thread
From: Kirill A. Shutemov @ 2020-06-08 12:54 UTC (permalink / raw)
  To: Dave Hansen, Andy Lutomirski, Peter Zijlstra, Thomas Gleixner,
	Ingo Molnar, Borislav Petkov, H. Peter Anvin
  Cc: Dan Williams, Tony Luck, x86, linux-mm, linux-kernel, Kirill A. Shutemov

A 5-level paging capable machine can have memory above 46-bit in the
physical address space. This memory is only addressable in the 5-level
paging mode: we don't have enough virtual address space to create direct
mapping for such memory in the 4-level paging mode.

Tested with a hacked QEMU: https://gist.github.com/kiryl/d45eb54110944ff95e544972d8bdac1d

v2:
 - Fix boot with KASLR enabled on such machines;
 - Better error message;

Kirill A. Shutemov (2):
  x86/mm: Fix boot with some memory above MAXMEM
  x86/boot/KASLR: Fix boot with some memory above MAXMEM

 arch/x86/boot/compressed/kaslr.c | 11 +++++++++++
 arch/x86/kernel/e820.c           | 24 ++++++++++++++++++++++--
 2 files changed, 33 insertions(+), 2 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2020-06-11  3:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 12:54 [PATCHv2 0/2] x86: Fix boot with some memory above MAXMEM Kirill A. Shutemov
2020-06-08 12:54 ` [PATCHv2 1/2] x86/mm: " Kirill A. Shutemov
2020-06-10  8:41   ` Mike Rapoport
2020-06-11  2:17   ` [x86/mm] c7b2a6d1af: kernel_BUG_at_arch/x86/mm/physaddr.c kernel test robot
2020-06-08 12:54 ` [PATCHv2 2/2] x86/boot/KASLR: Fix boot with some memory above MAXMEM Kirill A. Shutemov
2020-06-10  8:42   ` Mike Rapoport

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).