From: Daniel De Graaf Subject: Re: [PATCH v7 1/9] xl / libxl: push parsing of SSID and CPU pool ID down to libxl Date: Tue, 17 Jun 2014 18:46:04 -0400 Message-ID: <53A0C52C.3060703@tycho.nsa.gov> References: <1402997549-23136-1-git-send-email-wei.liu2@citrix.com> <1402997549-23136-2-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1402997549-23136-2-git-send-email-wei.liu2@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: Wei Liu , xen-devel@lists.xen.org Cc: Juergen Gross , Dario Faggioli , ian.jackson@eu.citrix.com, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org 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. > Acked-by: Ian Campbell > --- > tools/libxl/libxl.c | 22 +++++++-- > tools/libxl/libxl.h | 20 ++++++++ > tools/libxl/libxl_create.c | 57 +++++++++++++++++++++++ > tools/libxl/libxl_dm.c | 4 ++ > tools/libxl/libxl_types.idl | 6 +++ > tools/libxl/xl_cmdimpl.c | 107 ++++++++++++------------------------------- > tools/libxl/xl_sxp.c | 7 +-- > 7 files changed, 137 insertions(+), 86 deletions(-) > -- Daniel De Graaf National Security Agency