All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] x86: 5-level related changes into decompression code
@ 2017-11-01 11:54 ` Kirill A. Shutemov
  0 siblings, 0 replies; 34+ messages in thread
From: Kirill A. Shutemov @ 2017-11-01 11:54 UTC (permalink / raw)
  To: Ingo Molnar, Linus Torvalds, x86, Thomas Gleixner, H. Peter Anvin
  Cc: Andy Lutomirski, Cyrill Gorcunov, Borislav Petkov, Andi Kleen,
	linux-mm, linux-kernel, Kirill A. Shutemov

Hi Ingo,

While we haven't yet closed on how to handle MAX_PHYSMEM_BITS situation,
could you look on changes into kernel decompression code?

These changes prepare the code to boot-time switching between paging modes
and handle booting in 5-level mode when bootloader put kernel image above
4G, but haven't enabled 5-level paging for us.

Please review and consider applying.

Kirill A. Shutemov (4):
  x86/boot/compressed/64: Compile pagetable.c unconditionally
  x86/boot/compressed/64: Detect and handle 5-level paging at boot-time
  x86/boot/compressed/64: Introduce place_trampoline()
  x86/boot/compressed/64: Handle 5-level paging boot if kernel is above
    4G

 arch/x86/boot/compressed/Makefile    |  2 +-
 arch/x86/boot/compressed/head_64.S   | 99 +++++++++++++++++++++++++-----------
 arch/x86/boot/compressed/pagetable.c | 66 ++++++++++++++++++++++++
 arch/x86/boot/compressed/pagetable.h | 18 +++++++
 4 files changed, 154 insertions(+), 31 deletions(-)
 create mode 100644 arch/x86/boot/compressed/pagetable.h

-- 
2.14.2

^ permalink raw reply	[flat|nested] 34+ messages in thread
* [PATCH 0/4] Boot-time switching between 4- and 5-level paging for 4.15, Part 2
@ 2017-10-20 19:59 Kirill A. Shutemov
  2017-10-20 19:59   ` Kirill A. Shutemov
  0 siblings, 1 reply; 34+ messages in thread
From: Kirill A. Shutemov @ 2017-10-20 19:59 UTC (permalink / raw)
  To: Ingo Molnar, Linus Torvalds, x86, Thomas Gleixner, H. Peter Anvin
  Cc: Andy Lutomirski, Cyrill Gorcunov, Borislav Petkov, Andi Kleen,
	linux-mm, linux-kernel, Kirill A. Shutemov

Hi Ingo,

Here's the second bunch of patches that prepare kernel to boot-time switching
between paging modes.

It's a small one. I hope we can get it in quick. :)

I include the zsmalloc patch again. We need something to address the issue.
If we would find a better solution, we can come back to the topic and
rework it.

Apart from zsmalloc patch, the patchset includes changes to decompression
code. I reworked these patches. They are split not exactly the way you've
described before, but I hope it's sensible anyway.

Please review and consider applying.

Kirill A. Shutemov (4):
  mm/zsmalloc: Prepare to variable MAX_PHYSMEM_BITS
  x86/boot/compressed/64: Detect and handle 5-level paging at boot-time
  x86/boot/compressed/64: Introduce place_trampoline()
  x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G

 arch/x86/boot/compressed/head_64.S          | 99 ++++++++++++++++++++---------
 arch/x86/boot/compressed/pagetable.c        | 61 ++++++++++++++++++
 arch/x86/boot/compressed/pagetable.h        | 18 ++++++
 arch/x86/include/asm/pgtable-3level_types.h |  1 +
 arch/x86/include/asm/pgtable_64_types.h     |  2 +
 mm/zsmalloc.c                               | 13 ++--
 6 files changed, 158 insertions(+), 36 deletions(-)
 create mode 100644 arch/x86/boot/compressed/pagetable.h

-- 
2.14.2

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

end of thread, other threads:[~2017-11-10 12:46 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-01 11:54 [PATCH 0/4] x86: 5-level related changes into decompression code Kirill A. Shutemov
2017-11-01 11:54 ` Kirill A. Shutemov
2017-11-01 11:55 ` [PATCH 1/4] x86/boot/compressed/64: Compile pagetable.c unconditionally Kirill A. Shutemov
2017-11-01 11:55   ` Kirill A. Shutemov
2017-11-10  9:12   ` Ingo Molnar
2017-11-10  9:12     ` Ingo Molnar
2017-11-10  9:25     ` Kirill A. Shutemov
2017-11-10  9:25       ` Kirill A. Shutemov
2017-11-01 11:55 ` [PATCH 2/4] x86/boot/compressed/64: Detect and handle 5-level paging at boot-time Kirill A. Shutemov
2017-11-01 11:55   ` Kirill A. Shutemov
2017-11-10  9:13   ` Ingo Molnar
2017-11-10  9:13     ` Ingo Molnar
2017-11-01 11:55 ` [PATCH 3/4] x86/boot/compressed/64: Introduce place_trampoline() Kirill A. Shutemov
2017-11-01 11:55   ` Kirill A. Shutemov
2017-11-10  9:14   ` Ingo Molnar
2017-11-10  9:14     ` Ingo Molnar
2017-11-10  9:52     ` Kirill A. Shutemov
2017-11-10  9:52       ` Kirill A. Shutemov
2017-11-10  9:17   ` Ingo Molnar
2017-11-10  9:17     ` Ingo Molnar
2017-11-10  9:28     ` Ingo Molnar
2017-11-10  9:28       ` Ingo Molnar
2017-11-10  9:55       ` Kirill A. Shutemov
2017-11-10  9:55         ` Kirill A. Shutemov
2017-11-10 12:46         ` Ingo Molnar
2017-11-10 12:46           ` Ingo Molnar
2017-11-10  9:29   ` Ingo Molnar
2017-11-10  9:29     ` Ingo Molnar
2017-11-10  9:57     ` Kirill A. Shutemov
2017-11-10  9:57       ` Kirill A. Shutemov
2017-11-01 11:55 ` [PATCH 4/4] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G Kirill A. Shutemov
2017-11-01 11:55   ` Kirill A. Shutemov
  -- strict thread matches above, loose matches on Subject: below --
2017-10-20 19:59 [PATCH 0/4] Boot-time switching between 4- and 5-level paging for 4.15, Part 2 Kirill A. Shutemov
2017-10-20 19:59 ` [PATCH 3/4] x86/boot/compressed/64: Introduce place_trampoline() Kirill A. Shutemov
2017-10-20 19:59   ` 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.