From: Ian Jackson Subject: Re: [PATCH v2 03/13] libxl: provide a function to retrieve the xenstore domain id Date: Wed, 6 Jan 2016 16:38:10 +0000 Message-ID: <22157.17138.890808.880787@mariner.uk.xensource.com> References: <1450444471-6454-1-git-send-email-jgross@suse.com> <1450444471-6454-4-git-send-email-jgross@suse.com> <56740FC2.4030504@citrix.com> <567413E8.3010301@suse.com> <1452095954.21055.98.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1452095954.21055.98.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Juergen Gross , wei.liu2@citrix.com, stefano.stabellini@eu.citrix.com, Andrew Cooper , xen-devel@lists.xen.org, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH v2 03/13] libxl: provide a fun= ction to retrieve the xenstore domain id"): > On Fri, 2015-12-18 at 15:10 +0100, Juergen Gross wrote: > > The latter. It will be used in patch 13 to decide which domain to > > stop via "xl shutdown --all". > = > ITYM "not stop". > = > libxl already has interfaces for getting info about a > domain,=A0libxl_domain_info=A0libxl_list_domain etc, it seems like this > property should be added to that data rather than introducing a special > purpose API to get it. Especially given that xl shutdown already calls > libxl_list_domain. > = > I'm unsure if (lib)xl ought to be special casing XS in this way, as oppos= ed > to adding a more generic concept such as e.g. permanent domains, which > would be true for the xs domain but also for other special domains in the > future and could even be controlled by the user or toolstack (I'm thinking > you might want to set the flag on a driver domain for example). Indeed, I think a more general concept would be sensible. Stub dm domains are already handled specially I think. Ian.