Re: [PATCHv2 4/4] x86/64/kexec: Rewrite init_transition_pgtable() with kernel_ident_mapping_init()

Tom Lendacky
2024-08-14T16:02:31Z

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@linux.intel.com>

Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>

> ---
> arch/x86/include/asm/kexec.h | 5 +-
> arch/x86/kernel/machine_kexec_64.c | 89 +++++++++++-------------------
> 2 files changed, 32 insertions(+), 62 deletions(-)
>