[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



On Tue, 22 Sep 2015, Stefano Stabellini wrote:
> On Tue, 22 Sep 2015, Julien Grall wrote:
> > Hi Stefano,
> > 
> > On 21/09/2015 23:51, Stefano Stabellini wrote:
> > > Changes in v6:
> > > - use vmap to map pages
> > > - free old module and update mod->start and mod->size from
> > > kernel_decompress
> > 
> > I was expecting you to drop my Reviewed-by given those changes.
> 
> fair enough
> 
> 
> > > diff --git a/xen/arch/arm/kernel.c b/xen/arch/arm/kernel.c
> > > index f641b12..ad7e6bc 100644
> > > --- a/xen/arch/arm/kernel.c
> > > +++ b/xen/arch/arm/kernel.c
> > 
> > [...]
> > 
> > 
> > > +static __init uint32_t output_length(char *image, unsigned long 
> > > image_len)
> > > +{
> > > +    return *(uint32_t *)&image[image_len - 4];
> > > +}
> > > +
> > > +static __init int kernel_decompress(struct bootmodule *mod)
> > > +{
> > 
> > [...]
> > 
> > > +    mfn = _mfn(page_to_mfn(pages));
> > > +    output = __vmap(&mfn, 1 << kernel_order_out, 1, 1, PAGE_HYPERVISOR);
> > 
> > You may want to use vmap here which is a wrapper to __vmap and will setup 
> > the
> > granularity, align, and flags automatically for you.
>  
> The arguments are different.

I meant to say that it makes more sense to pass one region of higher 
granularity,
than to map pages one by one.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.