Re: [PATCH v2 0/2] x86/kexec: Carry forward the boot DTB on kexec

From: Dave Young
Date: Tue Aug 12 2025 - 23:57:24 EST


On Wed, 13 Aug 2025 at 02:01, Brian Mak <makb@xxxxxxxxxxx> wrote:
>
> On Aug 5, 2025, at 2:15 PM, Brian Mak <makb@xxxxxxxxxxx> wrote:
>
> > Hi all,
> >
> > Here is v2 with the comments from v1 addressed. I also added a patch to
> > the series to add KEXEC_FILE_NO_CMA as a legal flag. I noticed that this
> > was missing when I went to add my KEXEC_FILE_FORCE_DTB flag.
> >
> > Thanks,
> > Brian
> >
> > Changes in v2:
> > - Added a patch to add KEXEC_FILE_NO_CMA as a legal flag
> > - Added a KEXEC_FILE_FORCE_DTB flag to enable carrying over the current
> > boot's DTB on x86.
> > - Modified the commit message to include more reasoning for the change.
> > - Changed a pr_info print to a pr_debug print.
> >
> > Brian Mak (2):
> > kexec: Add KEXEC_FILE_NO_CMA as a legal flag
> > x86/kexec: Carry forward the boot DTB on kexec
> >
> > arch/x86/kernel/kexec-bzimage64.c | 47 +++++++++++++++++++++++++++++--
> > include/linux/kexec.h | 6 +++-
> > include/uapi/linux/kexec.h | 4 +++
> > kernel/kexec_file.c | 1 +
> > 4 files changed, 54 insertions(+), 4 deletions(-)
> >
> >
> > base-commit: 35a813e010b99894bb4706c56c16a580bf7959c2
> > --
> > 2.25.1
>
> I see Andrew has sent these patches to linux-next. Thanks for that,
> Andrew!
>
> Dave and Baoquan, have you two had a chance to peek at the updated patch
> set yet?

Hi, The #ifdef CONFIG_* which can be replaced by #if defined(), but I
do not have a strong opinion. other than that do you have kexec-tools
patch ready? It would be better to provide a link so that people can
try and test it.

Thanks
Dave