|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH for-4.22(?) 0/2] tools: Use the system liblz4 package
On 03.06.2026 10:53, Andrew Cooper wrote:
> Switch to using the system liblz4.
>
> This brings libxenguest's lz4 decompression in line all the others, rather
> than using the unsafe decompressor from Xen (itself a port of Linux's unsafe
> decompressor).
As stated in 84f04d8f0dbf ("libxc: add LZ4 decompression support"), there was
no shared library available at the time (and on the SLES versions I worked
with). Later a shared library appeared, but the -devel package still wasn't
there. On my main dev system (intentionally a relatively old SLES version) I
therefore wouldn't be able to build/test LZ4 anymore if we went this route.
(FTAOD this isn't an outright objection, as the goal of the series is
certainly good. It is mainly a data point to consider.)
Jan
> Andrew Cooper (2):
> tools/configure: Detect the presence of liblz4
> tools/libs/guest: Use the system liblz4 in the bzimage loader
>
> automation/build/debian/13-arm64v8.dockerfile | 1 +
> automation/build/debian/13-x86_64.dockerfile | 1 +
> tools/configure | 79 ++++++++++
> tools/configure.ac | 4 +
> tools/libs/guest/Makefile.common | 2 +-
> tools/libs/guest/xg_dom_bzimageloader.c | 128 +++++++++++++++-
> tools/libs/guest/xg_dom_decompress.h | 6 -
> tools/libs/guest/xg_dom_decompress_lz4.c | 143 ------------------
> tools/libs/guest/xg_dom_decompress_unsafe.h | 2 +
> .../libs/guest/xg_dom_decompress_unsafe_lz4.c | 39 +++++
> 10 files changed, 254 insertions(+), 151 deletions(-)
> delete mode 100644 tools/libs/guest/xg_dom_decompress.h
> delete mode 100644 tools/libs/guest/xg_dom_decompress_lz4.c
> create mode 100644 tools/libs/guest/xg_dom_decompress_unsafe_lz4.c
>
>
> base-commit: c069c014f21fd1f5925d8c30c18adb4f26381475
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |