grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Add zstdio support for booting Trixie kernels in Xen
@ 2025-10-14 20:14 Logan Gunthorpe via Grub-devel
  2025-10-14 20:14 ` [PATCH 1/4] io: Implement zstdio decompression Logan Gunthorpe via Grub-devel
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Logan Gunthorpe via Grub-devel @ 2025-10-14 20:14 UTC (permalink / raw)
  To: grub-devel, Daniel Kiper, Alex Burmashev,
	Vladimir 'phcoder' Serbinenko
  Cc: Logan Gunthorpe, Nagy Elemér Károly

This is v2 of the patch cleaning up a lot of style issues noted by
Avnish. I think I've got all the style issues that were requested fixed
up.

Thanks,

Logan

--

Changes in v2:
  - Fixed a bunch of style issues noted by Avnish.

Cover letter from v1:

Debian has started compressing the kernel images in the Trixie release.
This breaks booting xen kernels seeing grub has no support to decompress
the zstd images[1][2].

To improve this situation, this patch series adds zstdio support in
a way that's very similar to xzio. The first patch adds this support.
The remaining patchs expand the file_filter tests so this functionality
is covered.

--

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102066
[2] https://www.mail-archive.com/grub-devel@gnu.org/msg41663.html

Logan Gunthorpe (4):
  io: Implement zstdio decompression
  tests/file_filter: Regenerate gpg keys
  tests/file_filter: Add zstd test file
  tests/file_filter: Add zstd tests

 Makefile.util.def               |   1 +
 grub-core/Makefile.core.def     |   7 +
 grub-core/io/zstdio.c           | 237 ++++++++++++++++++++++++++++++++
 include/grub/file.h             |   3 +-
 tests/file_filter/file.gz.sig   | Bin 96 -> 310 bytes
 tests/file_filter/file.lzop.sig | Bin 96 -> 310 bytes
 tests/file_filter/file.xz.sig   | Bin 96 -> 310 bytes
 tests/file_filter/file.zstd     | Bin 0 -> 26 bytes
 tests/file_filter/file.zstd.sig | Bin 0 -> 310 bytes
 tests/file_filter/keys          | Bin 994 -> 1308 bytes
 tests/file_filter/keys.pub      | Bin 990 -> 657 bytes
 tests/file_filter/test.cfg      |   1 +
 tests/file_filter_test.in       |   7 +-
 13 files changed, 253 insertions(+), 3 deletions(-)
 create mode 100644 grub-core/io/zstdio.c
 create mode 100644 tests/file_filter/file.zstd
 create mode 100644 tests/file_filter/file.zstd.sig


base-commit: 6b5c671d35b1b84468da1fef2b9bd8e05682f7e6
--
2.47.3

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 0/4] Add zstdio support for booting Trixie kernels in Xen
@ 2025-09-23 20:12 Logan Gunthorpe via Grub-devel
  2025-10-07 16:34 ` Logan Gunthorpe via Grub-devel
  0 siblings, 1 reply; 12+ messages in thread
From: Logan Gunthorpe via Grub-devel @ 2025-09-23 20:12 UTC (permalink / raw)
  To: grub-devel, Daniel Kiper, Alex Burmashev,
	Vladimir 'phcoder' Serbinenko
  Cc: Logan Gunthorpe, Nagy Elemér Károly

Debian has started compressing the kernel images in the Trixie release.
This breaks booting xen kernels seeing grub has no support to decompress
the zstd images[1][2].

To improve this situation, this patch series adds zstdio support in
a way that's very similar to xzio. The first patch adds this support.
The remaining patchs expand the file_filter tests so this functionality
is covered.

Thanks,

Logan

--

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102066
[2] https://www.mail-archive.com/grub-devel@gnu.org/msg41663.html

Logan Gunthorpe (4):
  io: Implement zstdio decompression
  tests/file_filter: Regenerate gpg keys
  tests/file_filter: Add zstd test file
  tests/file_filter: Add zstd tests

 Makefile.util.def               |   1 +
 grub-core/Makefile.core.def     |   9 +-
 grub-core/io/zstdio.c           | 237 ++++++++++++++++++++++++++++++++
 include/grub/file.h             |   3 +-
 tests/file_filter/file.gz.sig   | Bin 96 -> 310 bytes
 tests/file_filter/file.lzop.sig | Bin 96 -> 310 bytes
 tests/file_filter/file.xz.sig   | Bin 96 -> 310 bytes
 tests/file_filter/file.zstd     | Bin 0 -> 26 bytes
 tests/file_filter/file.zstd.sig | Bin 0 -> 310 bytes
 tests/file_filter/keys          | Bin 994 -> 1308 bytes
 tests/file_filter/keys.pub      | Bin 990 -> 657 bytes
 tests/file_filter/test.cfg      |   1 +
 tests/file_filter_test.in       |   7 +-
 13 files changed, 254 insertions(+), 4 deletions(-)
 create mode 100644 grub-core/io/zstdio.c
 create mode 100644 tests/file_filter/file.zstd
 create mode 100644 tests/file_filter/file.zstd.sig


base-commit: ee789e1a625a43b31e17f91a11d4cfb609bc4c52
-- 
2.47.3


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

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

end of thread, other threads:[~2025-10-20 16:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14 20:14 [PATCH 0/4] Add zstdio support for booting Trixie kernels in Xen Logan Gunthorpe via Grub-devel
2025-10-14 20:14 ` [PATCH 1/4] io: Implement zstdio decompression Logan Gunthorpe via Grub-devel
2025-10-15 15:52   ` Daniel Kiper
2025-10-17 23:23     ` Logan Gunthorpe via Grub-devel
2025-10-20 16:16       ` Daniel Kiper
2025-10-20 16:37         ` Logan Gunthorpe via Grub-devel
2025-10-14 20:14 ` [PATCH 2/4] tests/file_filter: Regenerate gpg keys Logan Gunthorpe via Grub-devel
2025-10-14 20:14 ` [PATCH 3/4] tests/file_filter: Add zstd test file Logan Gunthorpe via Grub-devel
2025-10-14 20:14 ` [PATCH 4/4] tests/file_filter: Add zstd tests Logan Gunthorpe via Grub-devel
2025-10-14 20:15 ` [PATCH 0/4] Add zstdio support for booting Trixie kernels in Xen Logan Gunthorpe via Grub-devel
  -- strict thread matches above, loose matches on Subject: below --
2025-09-23 20:12 Logan Gunthorpe via Grub-devel
2025-10-07 16:34 ` Logan Gunthorpe via Grub-devel

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).