On Thu, 4 May 2023 at 18:41, 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() > Thanks a lot for taking care of this! This all looks good to me. The only comment I have is that EFI zboot itself is generic, even though arm64 is the only arch that distros are building it for at the moment. So it is not unlikely that some of this code will end up needing to be shared. Acked-by: Ard Biesheuvel <ardb@xxxxxxxxxx> > 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