Skip to content

x86: 5-level related changes into decompression code

Kirill A. Shutemov linux-mm lkml 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest4 patches 27 repliesIn review
  2. v84 patches 2 repliesSuperseded
  3. v74 patches 2 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v6 posting 2/24 patches3 repliesSuperseded
v6 posting 1/24 patches6 repliesSuperseded
v53 patches1 replySuperseded
v44 patches8 repliesSuperseded
v35 patches4 repliesSuperseded
v24 patches18 repliesSuperseded
v14 patches11 repliesSuperseded

Changes in v9 from the cover letter

- Patch 3 now saves and restores lowmem used for trampoline.

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/boot/compressed/64: Rename pagetable.c to kaslr_64.carch/x86/boot/compressed/Makefile arch/x86/boot/compressed/kaslr_64.c+1 -10 replies
2/4x86/boot/compressed/64: Introduce paging_prepare()arch/x86/boot/compressed/head_64.S arch/x86/boot/compressed/pgtable_64.c+31 -350 replies
3/4x86/boot/compressed/64: Prepare trampoline memoryarch/x86/boot/compressed/head_64.S arch/x86/boot/compressed/pgtable.h arch/x86/boot/compressed/pgtable_64.c+120 -114 replies
4/4x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4Garch/x86/boot/compressed/head_64.S+89 -3812 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchKirill A. ShutemovAndrei Vagin
1/4
2/4
3/4
4/4Debugged-by T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCHv9 0/4] x86: 5-level related changes into decompression code

These patcheset is a preparation for boot-time switching between paging modes. Please apply.

The first patch is pure cosmetic change: it gives file with KASLR helpers a proper name.

The last three patches bring support of booting into 5-level paging mode if a bootloader put the kernel above 4G.

Patch 2/4 Renames l5_paging_required() into paging_prepare() and change interface of the function.
Patch 3/4 Handles allocation of space for trampoline and gets it prepared. Patch 4/4 Gets trampoline used.

v9:
- Patch 3 now saves and restores lowmem used for trampoline.

There was report the patch causes issue on a machine. I suspect it's BIOS issue that doesn't report proper bounds of usable lowmem.

Restoring memory back to oringinal state makes problem go away.
v8:
- Support switching from 5- to 4-level paging.
v7:
- Fix booting when 5-level paging is enabled before handing off boot to the kernel, like in kexec() case.

Kirill A. Shutemov (4):
x86/boot/compressed/64: Rename pagetable.c to kaslr_64.c x86/boot/compressed/64: Introduce paging_prepare() x86/boot/compressed/64: Prepare trampoline memory 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                 | 178 ++++++++++++++-------
 .../boot/compressed/{pagetable.c => kaslr_64.c}    |   0
 arch/x86/boot/compressed/pgtable.h                 |  18 +++
 arch/x86/boot/compressed/pgtable_64.c              | 100 ++++++++++--
 5 files changed, 232 insertions(+), 66 deletions(-)
 rename arch/x86/boot/compressed/{pagetable.c => kaslr_64.c} (100%)
 create mode 100644 arch/x86/boot/compressed/pgtable.h
Signature · 7 lines
2.15.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>