[PATCH v2 2/2] powerpc/crash: Update backup region offset in elfcorehdr on memory hotplug
Aditya Gupta
adityag at linux.ibm.com
Sun Mar 8 07:13:28 AEDT 2026
On 26/03/07 10:50AM, Sourabh Jain wrote:
> <...snip...>
>
> +#ifdef CONFIG_CRASH_DUMP
> +/**
> + * sync_backup_region_phdr - synchronize backup region offset between
> + * kexec image and ELF core header.
> + * @image: Kexec image.
> + * @ehdr: ELF core header.
> + * @phdr_to_kimage: If true, read the offset from the ELF program header
> + * and update the kimage backup region. If false, update
> + * the ELF program header offset from the kimage backup
> + * region.
nit: if sending a v4, can we add a comment in 'phdr_to_kimage' description that
it is true in case of kexec_load and false in kexec_file_load, or maybe a
different name for the boolean eg 'use_phdr_offset' or simply 'is_kexec_load' ?
fwiw, part of the commit description mentions problem already fixed by patch 1
Looks good. Tested in pseries qemu.
Reviewed-by: Aditya Gupta <adityag at linux.ibm.com>
Thanks,
- Aditya G
More information about the Linuxppc-dev
mailing list