[PATCH v4 0/4] Add support for zboot images compressed with zstd

Daan De Meyer posted 4 patches 2 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251124123521.1058183-1-daan.j.demeyer@gmail.com
Maintainers: Peter Maydell <peter.maydell@linaro.org>, Paul Burton <paulburton@kernel.org>, Aleksandar Rikalo <arikalo@gmail.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Gerd Hoffmann <kraxel@redhat.com>
hw/arm/boot.c        |  4 ++--
hw/core/loader-fit.c |  2 +-
hw/core/loader.c     | 44 ++++++++++++++++++++++++++++----------------
hw/nvram/fw_cfg.c    |  2 +-
include/hw/loader.h  |  4 ++--
5 files changed, 34 insertions(+), 22 deletions(-)
[PATCH v4 0/4] Add support for zboot images compressed with zstd
Posted by Daan De Meyer 2 months, 2 weeks ago
Fedora arm64 has an EFI_ZBOOT kernel image compressed
with zstd. Let's make sure we can use it for direct kernel
boot with qemu.

Daan De Meyer (4):
  Rename LOAD_IMAGE_MAX_GUNZIP_BYTES to
    LOAD_IMAGE_MAX_DECOMPRESSED_BYTES
  Rename UBOOT_MAX_GUNZIP_BYTES to UBOOT_MAX_DECOMPRESSED_BYTES
  Use g_autofree in unpack_efi_zboot_image()
  Add support for zboot images compressed with zstd

 hw/arm/boot.c        |  4 ++--
 hw/core/loader-fit.c |  2 +-
 hw/core/loader.c     | 44 ++++++++++++++++++++++++++++----------------
 hw/nvram/fw_cfg.c    |  2 +-
 include/hw/loader.h  |  4 ++--
 5 files changed, 34 insertions(+), 22 deletions(-)

-- 
2.51.1
Re: [PATCH v4 0/4] Add support for zboot images compressed with zstd
Posted by Philippe Mathieu-Daudé 2 months, 2 weeks ago
On 24/11/25 13:35, Daan De Meyer wrote:
> Fedora arm64 has an EFI_ZBOOT kernel image compressed
> with zstd. Let's make sure we can use it for direct kernel
> boot with qemu.
> 
> Daan De Meyer (4):
>    Rename LOAD_IMAGE_MAX_GUNZIP_BYTES to
>      LOAD_IMAGE_MAX_DECOMPRESSED_BYTES
>    Rename UBOOT_MAX_GUNZIP_BYTES to UBOOT_MAX_DECOMPRESSED_BYTES
>    Use g_autofree in unpack_efi_zboot_image()
>    Add support for zboot images compressed with zstd

Thanks, queued for 11.0.