From: Sourabh Jain <sourabhjain@linux.ibm.com>
To: Aditya Gupta <adityag@linux.ibm.com>
Cc: hbathini@linux.ibm.com, linuxppc-dev@lists.ozlabs.org,
maddy@linux.ibm.com, mahesh@linux.ibm.com, mpe@ellerman.id.au,
ritesh.list@gmail.com, shivangu@linux.ibm.com
Subject: Re: [PATCH v2 2/2] powerpc/crash: Update backup region offset in elfcorehdr on memory hotplug
Date: Mon, 9 Mar 2026 19:06:23 +0530 [thread overview]
Message-ID: <d87a5a86-77f5-4bc1-a96d-216b46aa86e4@linux.ibm.com> (raw)
In-Reply-To: <aayGKtxLIn02Gm08@li-3c92a0cc-27cf-11b2-a85c-b804d9ca68fa.ibm.com>
On 08/03/26 01:43, Aditya Gupta wrote:
> 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' ?
I will update the comment and add how this function is called for
kexec_load and kexec_file_load
syscall and keep the function arguments same.
>
> fwiw, part of the commit description mentions problem already fixed by patch 1
>
> Looks good. Tested in pseries qemu.
>
> Reviewed-by: Aditya Gupta <adityag@linux.ibm.com>
Thanks for the review.
- Sourabh Jain
prev parent reply other threads:[~2026-03-09 13:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-07 5:20 [PATCH v2 0/2] powerpc/crash: backup region offset update to eflcorehdr Sourabh Jain
2026-03-07 5:20 ` [PATCH v2 1/2] powerpc/crash: fix " Sourabh Jain
2026-03-07 20:03 ` Aditya Gupta
2026-03-09 13:25 ` Sourabh Jain
2026-03-07 5:20 ` [PATCH v2 2/2] powerpc/crash: Update backup region offset in elfcorehdr on memory hotplug Sourabh Jain
2026-03-07 20:13 ` Aditya Gupta
2026-03-09 13:36 ` Sourabh Jain [this message]
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=d87a5a86-77f5-4bc1-a96d-216b46aa86e4@linux.ibm.com \
--to=sourabhjain@linux.ibm.com \
--cc=adityag@linux.ibm.com \
--cc=hbathini@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mahesh@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=ritesh.list@gmail.com \
--cc=shivangu@linux.ibm.com \
/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