From: Wei Liu Subject: Re: [PATCH v7 1/9] xl / libxl: push parsing of SSID and CPU pool ID down to libxl Date: Wed, 18 Jun 2014 09:11:39 +0100 Message-ID: <20140618081139.GA16133@zion.uk.xensource.com> References: <1402997549-23136-1-git-send-email-wei.liu2@citrix.com> <1402997549-23136-2-git-send-email-wei.liu2@citrix.com> <53A0C52C.3060703@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <53A0C52C.3060703@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel De Graaf Cc: Juergen Gross , Wei Liu , ian.campbell@citrix.com, Dario Faggioli , ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Jun 17, 2014 at 06:46:04PM -0400, Daniel De Graaf wrote: > On 06/17/2014 05:32 AM, Wei Liu wrote: > >This patch pushes parsing of "init_seclabel", "seclabel", > >"device_model_stubdomain_seclabel" and "pool" down to libxl level. > > > >Originally the parsing is done in xl level, which is not ideal because > >libxl won't have the truely relevant information. With this patch libxl > >holds important information by itself. > > > >The libxl IDL is extended to hold the string of labels and pool name. > >And if there those strings are present they take precedence over the > >numeric representations. > > > >As all relevant structures (libxl_dominfo etc) have a field called > >X_name / X_label now, a string is also copied there so that callers > >won't have to do ID to name / label translation. > > > >In order to be compatible with users of older versions of libxl, this > >patch also defines LIBXL_HAVE_SSID_LABEL and LIBXL_HAVE_CPUPOOL_NAME. If > >they are defined, the respective strings are available. And if those > >strings are not NULL, libxl will do the parsing and ignore the numeric > >values. > > > >Signed-off-by: Wei Liu > >Cc: Dario Faggioli > >Cc: Juergen Gross > >Cc: Daniel De Graaf > > This change looks good to me (untested), although I don't believe I am > listed as a maintainer for any of it. > I'm not at all familiar with these features so I CC'ed experts. Thanks for confirming. Wei.