[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2 of 4 v6/leftover] xl: inform libxl if there was a cpumap in the config file
On Mon, 2012-07-23 at 12:04 +0100, Ian Jackson wrote: > > diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c > > --- a/tools/libxl/libxl_dom.c > > +++ b/tools/libxl/libxl_dom.c > > @@ -212,7 +212,8 @@ int libxl__build_pre(libxl__gc *gc, uint > > * call to libxl_set_vcpuaffinity_all() will do the actual placement, > > * whatever that turns out to be. > > */ > > - if (libxl_bitmap_is_full(&info->cpumap)) { > > + if (libxl_defbool_val(info->numa_placement) && > > + libxl_bitmap_is_full(&info->cpumap)) { > > int rc = numa_place_domain(gc, info); > > Shouldn't this be > > - if (libxl_bitmap_is_full(&info->cpumap)) { > + if (libxl_defbool_val(info->numa_placement)) { > + if (!libxl_bitmap_is_full(&info->cpumap)) { > + rc = ERROR_INVAL; > + LOG blah blah invalid not supported > + goto out; > + } > > or the equivalent ? > Mmm... So that if one manage in setting numa_placement to true but also specify a cpumap we bail out, right? Yes, I think I can go for this. > Apart from that it looks good to me. > Cool. :-) Thanks and Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) Attachment:
signature.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |