Skip to content

x86: Reduce code duplication on page table initialization

Kirill A. Shutemov linux-acpi lkml 5 versions – Applied

Status from this message: The following commit has been merged into the x86/mm branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/24 patches 8 repliesApplied
  2. v4 posting 1/24 patches 1 replySuperseded
  3. v34 patches 9 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches8 repliesSuperseded
v13 patches5 repliesSuperseded

Changes in v4 from the cover letter

- Reviewed-bys from Kai;
- Fix comment in acpi_mp_setup_reset() (Rafael);

Patches in v4 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/4x86/mm/ident_map: Fix virtual address wrap to zeroarch/x86/mm/ident_map.c+3 -114 replies
2/4x86/acpi: Replace manual page table initialization with kernel_ident_mapping_init()arch/x86/kernel/acpi/madt_wakeup.c+15 -580 replies
3/4x86/64/kexec: Map original relocate_kernel() in init_transition_pgtable()arch/x86/kernel/machine_kexec_64.c+1 -11 reply
4/4x86/64/kexec: Rewrite init_transition_pgtable() with kernel_ident_mapping_init()arch/x86/include/asm/kexec.h arch/x86/kernel/machine_kexec_64.c+32 -620 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchTom LendackyKai HuangRafael J. Wysocki
1/4R-b R-b
2/4R-b R-b A-b
3/4R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCHv4, REBASED 0/4] x86: Reduce code duplication on page table initialization

Use kernel_ident_mapping_init() to initialize kernel page tables where possible, replacing manual initialization, reducing code duplication.

v4:
- Reviewed-bys from Kai;
- Fix comment in acpi_mp_setup_reset() (Rafael);
v3:
- Reviewed-bys from Tom;
- Improve commit messages;
v2:
- A separate patch to change what PA is mapped at relocate_kernel() VA.
- Improve commit messages;
- Add Reveiwed-by from Kai;

Kirill A. Shutemov (4):
x86/mm/ident_map: Fix virtual address wrap to zero x86/acpi: Replace manual page table initialization with
kernel_ident_mapping_init()
x86/64/kexec: Map original relocate_kernel() in
init_transition_pgtable()
x86/64/kexec: Rewrite init_transition_pgtable() with
kernel_ident_mapping_init()

 arch/x86/include/asm/kexec.h       |  5 +-
 arch/x86/kernel/acpi/madt_wakeup.c | 73 +++++-------------------
 arch/x86/kernel/machine_kexec_64.c | 89 +++++++++++-------------------
 arch/x86/mm/ident_map.c            | 14 +----
 4 files changed, 50 insertions(+), 131 deletions(-)
Signature · 1 line
2.45.2