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

Re: [Xen-devel] [PATCH v4 02/15] libxl: sanitize error handling in libxl_get_max_{cpus, nodes}



On mer, 2013-11-27 at 13:45 +0000, Ian Campbell wrote:
> On Fri, 2013-11-22 at 19:56 +0100, Dario Faggioli wrote:
> >  
> >      cpumap->map = xc_cpupool_freeinfo(ctx->xch);
> > diff --git a/tools/libxl/libxl_utils.c b/tools/libxl/libxl_utils.c
> > index 9f5f589..1815422 100644
> > --- a/tools/libxl/libxl_utils.c
> > +++ b/tools/libxl/libxl_utils.c
> > @@ -651,6 +651,56 @@ char *libxl_bitmap_to_hex_string(libxl_ctx *ctx, const 
> > libxl_bitmap *bitmap)
> >      return q;
> >  }
> >  
> > +int libxl_cpu_bitmap_alloc(libxl_ctx *ctx, libxl_bitmap *cpumap, int 
> > max_cpus)
> 
> You seem to have combined code motion with actual changes here. Please
> don't do that.
> 
As I explained in the commit message for this patch in v5, I actually am
both moving and (slightly) changing the functions, and that's mainly
because the changes I'm doing require the move (e.g., GC_INIT/GC_FREE
not being available in the original place).

I feel like it's more natural to do like this, rather than having a
pre-patch just moving the code for no apparent reason... Isn't it?

Or was it something else that you were pointing out?

(Anyway, feel free to look at v5 and reply there).

Thanks and Regards,
Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
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®.