From: Ian Campbell Subject: Re: [PATCH v2 17/18] xl: use libxl_retrieve_domain_configuration and JSON format Date: Wed, 3 Sep 2014 13:57:13 +0100 Message-ID: <1409749033.23789.8.camel@kazak.uk.xensource.com> References: <1406744639-28782-1-git-send-email-wei.liu2@citrix.com> <1406744639-28782-18-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406744639-28782-18-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 Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-07-30 at 19:23 +0100, Wei Liu wrote: > diff --git a/docs/man/xl.pod.1 b/docs/man/xl.pod.1 > index 30bd4bf..23add95 100644 > --- a/docs/man/xl.pod.1 > +++ b/docs/man/xl.pod.1 > @@ -187,6 +187,10 @@ immediate effect but will be applied when the guest is next > restarted. This command is useful to ensure that runtime modifications > made to the guest will be preserved when the guest is restarted. > > +Libxl now has improved capabilities to handle dynamic domain configuration How about "Since Xen 4.5 xl has improved ..."? > + config_c = libxl_domain_config_to_json(ctx, &d_config); > + if (!config_c) { > + fprintf(stderr, "unable to parse overridden config file\n"); I don't think this message matches the failure, does it? It's a failure to convert the config to JSON I think? > @@ -4348,6 +4375,9 @@ int main_config_update(int argc, char **argv) > exit(1); > } > > + fprintf(stderr, "WARN: libxl now has better capability to manage domain configuration, " > + "avoid using this command when possible\n"); I think you can say "xl" in this context, the user of xl doesn't care that it happens to be due to better scaffolding in the library. > + > domid = find_domain(argv[1]); > argc--; argv++; > > diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c > index 4279b9f..9bc0bca 100644 > --- a/tools/libxl/xl_cmdtable.c > +++ b/tools/libxl/xl_cmdtable.c > @@ -38,7 +38,9 @@ struct cmd_spec cmd_table[] = { > { "config-update", > &main_config_update, 1, 1, > "Update a running domain's saved configuration, used when rebuilding " > - "the domain after reboot", > + "the domain after reboot." > + "WARN: libxl now has better capability to manage domain configuration, " > + "avoid using this command when possible", Same. Ian.