Re: [PATCH v2 1/5] libxenguest: support zstd compressed kernels

2021-01-21 Thread Wei Liu
On Thu, Jan 21, 2021 at 04:05:39PM +0100, Jan Beulich wrote: > On 21.01.2021 16:01, Wei Liu wrote: > > On Tue, Jan 19, 2021 at 04:15:25PM +0100, Jan Beulich wrote: > >> This follows the logic used for other decompression methods utilizing an > >> external library, albeit here we can't ignore the

Re: [PATCH v2 1/5] libxenguest: support zstd compressed kernels

2021-01-21 Thread Jan Beulich
On 21.01.2021 16:01, Wei Liu wrote: > On Tue, Jan 19, 2021 at 04:15:25PM +0100, Jan Beulich wrote: >> This follows the logic used for other decompression methods utilizing an >> external library, albeit here we can't ignore the 32-bit size field >> appended to the compressed image - its presence

Re: [PATCH v2 1/5] libxenguest: support zstd compressed kernels

2021-01-21 Thread Wei Liu
On Tue, Jan 19, 2021 at 04:15:25PM +0100, Jan Beulich wrote: > This follows the logic used for other decompression methods utilizing an > external library, albeit here we can't ignore the 32-bit size field > appended to the compressed image - its presence causes decompression to > fail. Leverage

[PATCH v2 1/5] libxenguest: support zstd compressed kernels

2021-01-19 Thread Jan Beulich
This follows the logic used for other decompression methods utilizing an external library, albeit here we can't ignore the 32-bit size field appended to the compressed image - its presence causes decompression to fail. Leverage the field instead to allocate the output buffer in one go, i.e.