From: Wei Liu Subject: Re: [PATCH v9 6/9] libxl/xl: deprecate the build_info->cpumap field Date: Thu, 19 Jun 2014 15:18:15 +0100 Message-ID: <20140619141815.GP20819@zion.uk.xensource.com> References: <20140618141449.21586.55528.stgit@Solace> <20140618142825.21586.54202.stgit@Solace> <20140618150950.GI20819@zion.uk.xensource.com> <1403109630.21681.28.camel@Solace> <20140619110604.GN20819@zion.uk.xensource.com> <1403186455.12893.12.camel@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1403186455.12893.12.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Wei Liu , Ian.Campbell@citrix.com, Andrew.Cooper3@citrix.com, George.Dunlap@citrix.com, xen-devel@lists.xen.org, Ian.Jackson@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, Jun 19, 2014 at 04:00:55PM +0200, Dario Faggioli wrote: > On gio, 2014-06-19 at 12:06 +0100, Wei Liu wrote: > > On Wed, Jun 18, 2014 at 06:40:30PM +0200, Dario Faggioli wrote: > > > > I'm not sure we can change it like that, without it being considered an > > > API compatibility breakage.... If we can, I'm all for it (if you > > > remember, was trying to do right that in v8). > > > > > > > I think this is library internal details. As long as the application > > sees the same behavior then we are fine. > > > I've looked at the code more closely, understood better how > *_setdefaults() works, and have come to the same determination. > > > In V8 setting the default value and honoring cpumap are both removed so > > that's wrong. > > > Sure. And in fact, what I want --and am doing for v10-- is to kill the > initializer in libxl__build_info_setdefaults() (as it was being done in > v8) while keeping the honoring, if the map is allocated and used by the > caller (as you and Ian suggested, and as it was in v9). > I think that will do. > > If you choose to not set the full map then check the size > > later I think it's also OK. That implies making the default value from a > > full bitmap to an empty bitmap, but it's all library internal > > implementation. The application still sees the same behavior. > > > Not an empty bitmap: a 'not-even-allocated bitmap' (which may be what > you meant already, but you know, one better be sure :-P ). > Yes, that's what I meant. :-) Wei.