From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
To: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Andy Lutomirski <luto@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Baoquan He <bhe@redhat.com>
Cc: Ard Biesheuvel <ardb@kernel.org>,
Tom Lendacky <thomas.lendacky@amd.com>,
Andrew Morton <akpm@linux-foundation.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Sean Christopherson <seanjc@google.com>,
linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Subject: [PATCHv3 0/4] x86: Reduce code duplication on page table initialization
Date: Mon, 19 Aug 2024 10:08:23 +0300 [thread overview]
Message-ID: <20240819070827.3620020-1-kirill.shutemov@linux.intel.com> (raw)
Use kernel_ident_mapping_init() to initialize kernel page tables where
possible, replacing manual initialization, reducing code duplication.
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.43.0
next reply other threads:[~2024-08-19 7:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-19 7:08 Kirill A. Shutemov [this message]
2024-08-19 7:08 ` [PATCHv3 1/4] x86/mm/ident_map: Fix virtual address wrap to zero Kirill A. Shutemov
2024-08-19 7:08 ` [PATCHv3 2/4] x86/acpi: Replace manual page table initialization with kernel_ident_mapping_init() Kirill A. Shutemov
2024-08-19 19:26 ` Rafael J. Wysocki
2024-08-19 7:08 ` [PATCHv3 3/4] x86/64/kexec: Map original relocate_kernel() in init_transition_pgtable() Kirill A. Shutemov
2024-08-19 11:16 ` Huang, Kai
2024-08-19 11:57 ` kirill.shutemov
2024-08-19 12:39 ` Huang, Kai
2024-08-20 10:13 ` kirill.shutemov
2024-08-20 11:06 ` Huang, Kai
2024-08-20 11:14 ` kirill.shutemov
2024-08-20 11:52 ` Huang, Kai
2024-08-19 7:08 ` [PATCHv3 4/4] x86/64/kexec: Rewrite init_transition_pgtable() with kernel_ident_mapping_init() Kirill A. Shutemov
2024-08-20 11:53 ` Huang, Kai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240819070827.3620020-1-kirill.shutemov@linux.intel.com \
--to=kirill.shutemov@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=ardb@kernel.org \
--cc=bhe@redhat.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rafael@kernel.org \
--cc=seanjc@google.com \
--cc=tglx@linutronix.de \
--cc=thomas.lendacky@amd.com \
--cc=tzimmermann@suse.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox