Re: [PATCH 2/2] xen/gunzip: Allow perform_gunzip() to be called multiple times

2021-04-07 Thread Julien Grall
Hi Jan, On 07/04/2021 11:39, Jan Beulich wrote: On 02.04.2021 17:21, Julien Grall wrote: --- a/xen/common/inflate.c +++ b/xen/common/inflate.c @@ -238,6 +238,12 @@ STATIC const ush mask_bits[] = { static unsigned long INITDATA malloc_ptr; static int INITDATA malloc_count; +static void in

Re: [PATCH 2/2] xen/gunzip: Allow perform_gunzip() to be called multiple times

2021-04-07 Thread Jan Beulich
On 02.04.2021 17:21, Julien Grall wrote: > --- a/xen/common/inflate.c > +++ b/xen/common/inflate.c > @@ -238,6 +238,12 @@ STATIC const ush mask_bits[] = { > static unsigned long INITDATA malloc_ptr; > static int INITDATA malloc_count; > > +static void init_allocator(void) > +{ > +malloc_ptr

Re: [PATCH 2/2] xen/gunzip: Allow perform_gunzip() to be called multiple times

2021-04-06 Thread Jan Beulich
On 02.04.2021 17:21, Julien Grall wrote: > From: Julien Grall > > Currently perform_gunzip() can only be called once because the > the internal state (e.g allocate) is not fully re-initialized. > > This works fine if you are only booting dom0. But this will break when > booting multiple using th

[PATCH 2/2] xen/gunzip: Allow perform_gunzip() to be called multiple times

2021-04-02 Thread Julien Grall
From: Julien Grall Currently perform_gunzip() can only be called once because the the internal state (e.g allocate) is not fully re-initialized. This works fine if you are only booting dom0. But this will break when booting multiple using the dom0less that uses compressed kernel images. This ca