From: Youling Tang <[email protected]> - Add kexec_file support for LoongArch. - Fix and improve the LoongArch implementation. - Fixed the handling of crashkernel parameters when using --reuse-cmdline.
Kernel support for kexec_file was introduced by the patch detailed in Link [1]. Link[1]: https://lore.kernel.org/loongarch/[email protected]/T/#t Changelog: v2: - Add kexec_file support for LoongArch. - Correct email address and Signed-off-by. Youling Tang (10): kexec: Handle removal of multiple 'crashkernel' parameters LoongArch: Fix comments LoongArch: Terminate the cmdline string using '\0' LoongArch: Enforce relocatable kernel check for crash dump LoongArch: Change initrd allocation to top-down LoongArch: Fix the use of loongarch_image_header in ELF format LoongArch: Add pe_hdr->machine check for pei format images LoongArch/pez: Fix kernel_fd handling when kexec_file is supported LoongArch: Add kexec_file_load syscall LoongArch: Remove 'kexec_file' cmdline parameters when using --reuse-cmdline option kexec/arch/loongarch/image-header.h | 5 ++- kexec/arch/loongarch/kexec-elf-loongarch.c | 47 ++++++++++++++++++---- kexec/arch/loongarch/kexec-loongarch.c | 44 +++++++++++++++++++- kexec/arch/loongarch/kexec-loongarch.h | 1 + kexec/arch/loongarch/kexec-pei-loongarch.c | 27 ++++++++++++- kexec/arch/loongarch/kexec-pez-loongarch.c | 14 ++++--- kexec/kexec-syscall.h | 5 ++- kexec/kexec.c | 6 +++ 8 files changed, 130 insertions(+), 19 deletions(-) -- 2.34.1
