[PATCH 0/2] ZBOOT zstd support

Pingfan Liu piliu at redhat.com
Wed Dec 11 04:17:15 PST 2024


On Wed, Dec 11, 2024 at 10:59 AM Jeremy Linton <jeremy.linton at arm.com> wrote:
>
> This set adds zstd compressed image support to the image decompression
> logic. This enables kexec with PE-ZBOOT images compressed with
> zstd. zstd is one of those algorithms which is better in most regards
> than zlib because it both compresses data better an is at the same
> time faster. This is in large part because its written for modern
> machines and is less of a byte oriented compression algorithm which
> optimizes well on modern 64-bit machines.
>
> Adding this logic to kexec allows distributions to ship zstd
> compressed kernels without loss of kexec/kdump functionatlity.
>
> Jeremy Linton (2):
>   zstd: Add zstd decompression logic
>   kexec: Enable zstd in kexec decompression paths
>
>  configure.ac           |  10 +++
>  kexec/Makefile         |   4 +-
>  kexec/kexec-pe-zboot.c |   3 +-
>  kexec/kexec-zstd.h     |   7 ++
>  kexec/kexec.c          |  10 ++-
>  kexec/zstd.c           | 191 +++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 220 insertions(+), 5 deletions(-)
>  create mode 100644 kexec/kexec-zstd.h
>  create mode 100644 kexec/zstd.c
>
> --
> 2.47.0
>
>

For this series, except some trivial format issue,
Tested-by: Pingfan Liu <piliu at redhat.com>
Acked-by: Pingfan Liu <piliu at redhat.com>




More information about the kexec mailing list