Re: [Xen-devel] [PATCH v5 2/2] xen/arm: support gzip compressed kernels

2015-09-14 Thread Ian Campbell
On Fri, 2015-09-11 at 17:20 +0100, Stefano Stabellini wrote: > > > > + > > > +return 0; > > > +} > > > + > > > #ifdef CONFIG_ARM_64 > > > /* > > > * Check if the image is a 64-bit Image. > > > @@ -463,6 +522,22 @@ int kernel_probe(struct kernel_info *info) > > > printk("Loading ra

Re: [Xen-devel] [PATCH v5 2/2] xen/arm: support gzip compressed kernels

2015-09-11 Thread Stefano Stabellini
On Tue, 8 Sep 2015, Ian Campbell wrote: > On Mon, 2015-09-07 at 15:25 +0100, Stefano Stabellini wrote: > > Free the memory used for the compressed kernel and update the relative > > mod->start and mod->size parameters with the uncompressed ones. > > > > Signed-off-by: Stefano Stabellini > > Revie

Re: [Xen-devel] [PATCH v5 2/2] xen/arm: support gzip compressed kernels

2015-09-08 Thread Jan Beulich
>>> On 08.09.15 at 15:35, wrote: > On Mon, 2015-09-07 at 15:25 +0100, Stefano Stabellini wrote: >> +static __init int kernel_decompress(struct kernel_info *info, >> + paddr_t *addr, paddr_t *size) >> +{ >> +char *output, *input, *end; >> +char magic[2]; >> +

Re: [Xen-devel] [PATCH v5 2/2] xen/arm: support gzip compressed kernels

2015-09-08 Thread Ian Campbell
On Mon, 2015-09-07 at 15:25 +0100, Stefano Stabellini wrote: > Free the memory used for the compressed kernel and update the relative > mod->start and mod->size parameters with the uncompressed ones. > > Signed-off-by: Stefano Stabellini > Reviewed-by: Julien Grall > CC: ian.campb...@citrix.com

[Xen-devel] [PATCH v5 2/2] xen/arm: support gzip compressed kernels

2015-09-07 Thread Stefano Stabellini
Free the memory used for the compressed kernel and update the relative mod->start and mod->size parameters with the uncompressed ones. Signed-off-by: Stefano Stabellini Reviewed-by: Julien Grall CC: ian.campb...@citrix.com --- Changes in v5: - code style Changes in v4: - return uint32_t from