From: Baoquan He <bhe@redhat.com>
To: Sourabh Jain <sourabhjain@linux.ibm.com>
Cc: kexec@lists.infradead.org, Aditya Gupta <adityag@linux.ibm.com>,
Coiby Xu <coxu@redhat.com>, Hari Bathini <hbathini@linux.ibm.com>,
Mahesh Salgaonkar <mahesh@linux.ibm.com>,
Simon Horman <horms@kernel.org>
Subject: Re: [PATCH v3 1/3] kexec_load: Use new kexec flag for hotplug support
Date: Mon, 8 Jul 2024 18:30:12 +0800 [thread overview]
Message-ID: <Zou/tF+wmuEKVT7c@MiWiFi-R3L-srv> (raw)
In-Reply-To: <20240707152456.87899-2-sourabhjain@linux.ibm.com>
On 07/07/24 at 08:54pm, Sourabh Jain wrote:
> Kernel commit 79365026f869 (crash: add a new kexec flag for hotplug
> support) has introduced a new kexec flag to generalize hotplug support.
> The newly introduced kexec flags for hotplug allow architectures to
> exclude all the required kexec segments from SHA calculation so that
> the kernel can update them on hotplug events. This was not possible
> earlier with the KEXEC_UPDATE_ELFCOREHDR kexec flags since it was added
> only for the elfcorehdr segment.
>
> To enable architectures to control the list of kexec segments to exclude
> when hotplug support is enabled, add a new architecture-specific
> function named arch_do_exclude_segment. During the SHA calculation, this
> function gets called to let the architecture decide whether a specific
> kexec segment should be considered for SHA calculation or not.
>
> Note: To avoid breaking backward compatibility, the new kexec flag
> KEXEC_CRASH_HOTPLUG_SUPPORT is not used for x86 for now.
>
> Cc: Aditya Gupta <adityag@linux.ibm.com>
> Cc: Baoquan He <bhe@redhat.com>
> Cc: Coiby Xu <coxu@redhat.com>
> Cc: Hari Bathini <hbathini@linux.ibm.com>
> Cc: Mahesh Salgaonkar <mahesh@linux.ibm.com>
> Cc: Simon Horman <horms@kernel.org>
> Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
> ---
> kexec/arch/arm/kexec-arm.c | 5 ++++
> kexec/arch/arm64/kexec-arm64.c | 5 ++++
> kexec/arch/cris/kexec-cris.c | 4 +++
> kexec/arch/hppa/kexec-hppa.c | 5 ++++
> kexec/arch/i386/kexec-x86.c | 8 ++++++
> kexec/arch/ia64/kexec-ia64.c | 4 +++
> kexec/arch/loongarch/kexec-loongarch.c | 5 ++++
> kexec/arch/m68k/kexec-m68k.c | 5 ++++
> kexec/arch/mips/kexec-mips.c | 4 +++
> kexec/arch/ppc/kexec-ppc.c | 4 +++
> kexec/arch/ppc64/kexec-ppc64.c | 5 ++++
> kexec/arch/s390/kexec-s390.c | 5 ++++
> kexec/arch/sh/kexec-sh.c | 5 ++++
> kexec/arch/x86_64/kexec-x86_64.c | 8 ++++++
> kexec/kexec-syscall.h | 1 +
> kexec/kexec.c | 40 ++++++++++++++++++++++----
> kexec/kexec.h | 2 ++
> 17 files changed, 109 insertions(+), 6 deletions(-)
LGTM,
Acked-by: Baoquan He <bhe@redhat.com>
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2024-07-08 10:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-07 15:24 [PATCH v3 0/3] Enable crash hotplug support on powerpc Sourabh Jain
2024-07-07 15:24 ` [PATCH v3 1/3] kexec_load: Use new kexec flag for hotplug support Sourabh Jain
2024-07-08 1:39 ` Baoquan He
2024-07-08 7:55 ` Sourabh Jain
2024-07-08 10:27 ` Baoquan He
2024-07-08 10:30 ` Baoquan He [this message]
2024-07-08 13:22 ` Sourabh Jain
2024-07-07 15:24 ` [PATCH v3 2/3] powerpc/kexec_load: add " Sourabh Jain
2024-07-07 15:24 ` [PATCH v3 3/3] doc/hotplug: update man and --help Sourabh Jain
2024-07-09 7:29 ` [PATCH v3 0/3] Enable crash hotplug support on powerpc Simon Horman
-- strict thread matches above, loose matches on Subject: below --
2024-07-02 4:30 [PATCH v3 1/3] kexec_load: Use new kexec flag for hotplug support Sourabh Jain
2024-07-03 4:31 ` Baoquan He
2024-07-03 18:07 ` Sourabh Jain
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=Zou/tF+wmuEKVT7c@MiWiFi-R3L-srv \
--to=bhe@redhat.com \
--cc=adityag@linux.ibm.com \
--cc=coxu@redhat.com \
--cc=hbathini@linux.ibm.com \
--cc=horms@kernel.org \
--cc=kexec@lists.infradead.org \
--cc=mahesh@linux.ibm.com \
--cc=sourabhjain@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.