kexec.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [Patch v2 0/2]  ZBOOT zstd support
@ 2024-12-12 21:13 Jeremy Linton
  2024-12-12 21:13 ` [Patch v2 1/2] zstd: Add zstd decompression logic Jeremy Linton
  2024-12-12 21:13 ` [Patch v2 2/2] kexec: Enable zstd in kexec decompression paths Jeremy Linton
  0 siblings, 2 replies; 5+ messages in thread
From: Jeremy Linton @ 2024-12-12 21:13 UTC (permalink / raw)
  To: kexec; +Cc: piliu, horms, arb, dyoung, Jeremy Linton

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-13 12:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12 21:13 [Patch v2 0/2] ZBOOT zstd support Jeremy Linton
2024-12-12 21:13 ` [Patch v2 1/2] zstd: Add zstd decompression logic Jeremy Linton
2024-12-13 12:46   ` Simon Horman
2024-12-12 21:13 ` [Patch v2 2/2] kexec: Enable zstd in kexec decompression paths Jeremy Linton
2024-12-13 12:46   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).