Hi Jeremy, Thanks for sharing this. When I get your series, my series is close to end, so just post it. My 2/5 is identical to your 4/4, and can be dropped. My 5/5 is similar to your 2/4, which can be dropped either. The main difference is about the image probe method. Since the introduction of zboot format, it is not proper any more to call the slurp_decompress_file() function once before attempting to call various possible probes. So my series scatters the slurp_decompress_file() into each probe, and return two factors: the kernel fd which is used by sys_kexec_file_load and the parsed kernel buf, which is used later by the image probe function. On Fri, May 5, 2023 at 12:44 AM Jeremy Linton <jeremy.linton@xxxxxxx> wrote: > > The linux ZBOOT option creates PEs that contain compressed kernel images > which are self decompressed on execution by UEFI. > > This set adds support for this image format to kexec by decompressing the > contained kernel image to a temp file, then handing the resulting image > off to the existing "Image" load routine to pass to the kexec syscall. > > There is also an additional patch which cleans up some errors noticed > in the existing zImage support as well. > > Jeremy Linton (4): > arm64: Cleanup _probe() return values > arm64: Add ZBOOT PE containing compressed image support > arm64: Hook up the ZBOOT support as vmlinuz > arm64: Fix some issues with zImage _probe() > > kexec/arch/arm64/Makefile | 3 +- > kexec/arch/arm64/image-header.h | 11 ++ > kexec/arch/arm64/kexec-arm64.c | 7 + > kexec/arch/arm64/kexec-arm64.h | 3 + > kexec/arch/arm64/kexec-elf-arm64.c | 1 + > kexec/arch/arm64/kexec-vmlinuz-arm64.c | 172 +++++++++++++++++++++++++ > kexec/arch/arm64/kexec-zImage-arm64.c | 13 +- > kexec/kexec.c | 11 +- > 8 files changed, 201 insertions(+), 20 deletions(-) > create mode 100644 kexec/arch/arm64/kexec-vmlinuz-arm64.c > > -- > 2.40.0 > > > _______________________________________________ > kexec mailing list > kexec@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/kexec > _______________________________________________ kexec mailing list kexec@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/kexec