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 <[email protected]>

Thanks,
- Aditya G


Reply via email to