On 8/14/24 07:46, Kirill A. Shutemov wrote: > init_transition_pgtable() sets up transitional page tables. Rewrite it > using kernel_ident_mapping_init() to avoid code duplication. > > Change struct kimage_arch to track allocated page tables as a list, not > linking them to specific page table levels. > > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Reviewed-by: Tom Lendacky <thomas.lendacky@xxxxxxx> > --- > arch/x86/include/asm/kexec.h | 5 +- > arch/x86/kernel/machine_kexec_64.c | 89 +++++++++++------------------- > 2 files changed, 32 insertions(+), 62 deletions(-) >