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. v1->v2: Correct some formatting issues Tweaked core decompress loop to simplify it Number of comment tweaks Added PingFan's ack, but not tested-by due to decompress tweak 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 | 181 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 210 insertions(+), 5 deletions(-) create mode 100644 kexec/kexec-zstd.h create mode 100644 kexec/zstd.c -- 2.47.0