Re: [PATCH v2 4/6] gzip: refactor state tracking

2024-04-17 Thread Andrew Cooper
On 17/04/2024 3:37 pm, Daniel P. Smith wrote: > diff --git a/xen/common/gzip/gunzip.c b/xen/common/gzip/gunzip.c > index 1b448d6e3655..8178a05a0190 100644 > --- a/xen/common/gzip/gunzip.c > +++ b/xen/common/gzip/gunzip.c > @@ -4,18 +4,25 @@ > #include > #include > > -static unsigned char *__i

[PATCH v2 4/6] gzip: refactor state tracking

2024-04-17 Thread Daniel P. Smith
Move the core state into struct gzip_data to allow a per decompression instance. Signed-off-by: Daniel P. Smith --- xen/common/gzip/gunzip.c | 55 +++- xen/common/gzip/inflate.c | 174 +++--- 2 files changed, 120 insertions(+), 109 deletions(-) diff --g