From: Wei Liu Subject: Re: [PATCH V4 20/24] xl: introduce load/save_domain_config Date: Tue, 6 May 2014 16:03:23 +0100 Message-ID: <20140506150323.GQ17067@zion.uk.xensource.com> References: <1398949101-23320-1-git-send-email-wei.liu2@citrix.com> <1398949101-23320-21-git-send-email-wei.liu2@citrix.com> <1399386492.3014.174.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1399386492.3014.174.camel@kazak.uk.xensource.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: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, May 06, 2014 at 03:28:12PM +0100, Ian Campbell wrote: > On Thu, 2014-05-01 at 13:58 +0100, Wei Liu wrote: > > They are used to serialize / deserialize domain configuration to / from > > user data store. > > Signed-off-by: Wei Liu > > --- > > tools/libxl/xl_cmdimpl.c | 119 ++++++++++++++++++++++++++++++---------------- > > 1 file changed, 77 insertions(+), 42 deletions(-) > > > > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c > > index 7443d86..f891ab5 100644 > > --- a/tools/libxl/xl_cmdimpl.c > > +++ b/tools/libxl/xl_cmdimpl.c > > @@ -160,6 +160,73 @@ struct domain_create { > > char **migration_domname_r; /* from malloc */ > > }; > > > > +static int _parse_config_data_json(char *config_data, int config_len, > > + libxl_domain_config *d_config) > > The _ namespace is reserved for something (either POSIX or the compiler, > but not us, for sure) > I will use _xl namespace instead. Wei. > > Ian.