From: Tim Deegan Subject: Re: [PATCH 0/3] libxl stubdom API cleanup Date: Fri, 9 Jul 2010 11:51:01 +0100 Message-ID: <20100709105101.GD31695@whitby.uk.xensource.com> References: <1278507656-7745-1-git-send-email-vincent.hanquez@eu.citrix.com> <4C35B3E1.2010106@eu.citrix.com> <1278598709.28432.589.camel@zakaz.uk.xensource.com> <20100709081755.GC31695@whitby.uk.xensource.com> <4C36FD7A.1070303@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <4C36FD7A.1070303@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Vincent Hanquez Cc: Ian Campbell , Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org At 11:44 +0100 on 09 Jul (1278675850), Vincent Hanquez wrote: > On 09/07/10 09:17, Tim Deegan wrote: > >> Is it necessary to pull the mechanism out along with the policy though? > >> > > Or, if we're taking some mechanism out, couldn't we take _all_ the > > mechanism out? > > Which one do you have in minds ? It looks like your patch leaves some "create a stubdom" functions in the libxl API. I'd have thought libxl should either handle stubdoms entirely or not at all. (Unless stubdom creation needs some low-level grunge that will uglify the libxl API if it's exposed that far up - I can't think of any except PRIV_FOR though). > > The idea of a stub domain doesn't seem like one that > > libxl necessarily needs to know about. > > > yes, indeed. the stubdom create could move as a xl helper. > On the ocaml side reimplementing stubdom create is a trivial composition > of smaller libxl function (create/build/add devs) which are already bound. That sounds cleaner to me. Cheers, Tim. -- Tim Deegan Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)