public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv4, REBASED 0/4] x86: Reduce code duplication on page table initialization
@ 2024-10-16 11:14 Kirill A. Shutemov
  2024-10-16 11:14 ` [PATCHv4, REBASED 1/4] x86/mm/ident_map: Fix virtual address wrap to zero Kirill A. Shutemov
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Kirill A. Shutemov @ 2024-10-16 11:14 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin, Rafael J. Wysocki, Andy Lutomirski,
	Peter Zijlstra, Baoquan He
  Cc: Ard Biesheuvel, Tom Lendacky, Andrew Morton, Thomas Zimmermann,
	Sean Christopherson, linux-kernel, linux-acpi, Kirill A. Shutemov

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(-)

-- 
2.45.2


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

end of thread, other threads:[~2025-03-19 11:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16 11:14 [PATCHv4, REBASED 0/4] x86: Reduce code duplication on page table initialization Kirill A. Shutemov
2024-10-16 11:14 ` [PATCHv4, REBASED 1/4] x86/mm/ident_map: Fix virtual address wrap to zero Kirill A. Shutemov
2024-10-30 11:47   ` Borislav Petkov
2024-10-31 10:11     ` Kirill A. Shutemov
2024-10-31 13:59       ` Borislav Petkov
2024-11-04  9:26         ` Kirill A. Shutemov
2025-03-10 19:50   ` [tip: x86/mm] x86/mm/ident_map: Fix theoretical virtual address overflow " tip-bot2 for Kirill A. Shutemov
2025-03-19 11:04   ` [tip: x86/core] " tip-bot2 for Kirill A. Shutemov
2024-10-16 11:14 ` [PATCHv4, REBASED 2/4] x86/acpi: Replace manual page table initialization with kernel_ident_mapping_init() Kirill A. Shutemov
2025-03-10 19:50   ` [tip: x86/mm] " tip-bot2 for Kirill A. Shutemov
2025-03-19 11:04   ` [tip: x86/core] " tip-bot2 for Kirill A. Shutemov
2024-10-16 11:14 ` [PATCHv4, REBASED 3/4] x86/64/kexec: Map original relocate_kernel() in init_transition_pgtable() Kirill A. Shutemov
2024-10-31 14:23   ` Borislav Petkov
2024-10-16 11:14 ` [PATCHv4, REBASED 4/4] x86/64/kexec: Rewrite init_transition_pgtable() with kernel_ident_mapping_init() Kirill A. Shutemov
2024-10-29 15:09 ` [PATCHv4, REBASED 0/4] x86: Reduce code duplication on page table initialization Kirill A. Shutemov
2024-10-31 16:21   ` Dave Hansen
2025-03-10 19:45 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox