From: Ian Jackson Subject: Re: [PATCH V4 19/24] xl: introduce and use "xl-json" format Date: Wed, 7 May 2014 12:18:25 +0100 Message-ID: <21354.5761.489557.722661@mariner.uk.xensource.com> References: <1398949101-23320-1-git-send-email-wei.liu2@citrix.com> <1398949101-23320-20-git-send-email-wei.liu2@citrix.com> <1399386402.3014.172.camel@kazak.uk.xensource.com> <20140506151753.GR17067@zion.uk.xensource.com> <1399457469.3014.248.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1399457469.3014.248.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 Ian Campbell writes ("Re: [PATCH V4 19/24] xl: introduce and use "xl-json" format"): > By using a common one could we perhaps fix the issue of not being able > to poke at e.g. libvirt domain using xl? (specifically things like xl > list -v on a system with a mix of domains does odd things IIRC). > > Perhaps storing (and all the updating) this thing is something which > libxl rather than xl should take care of? With a function > libxl_domain_fetch_config(ctx, domid, &libxl_domain_config)? In that case libxl_domain_create would have to transform the supplied domain config back into json before saving it. But that might well be a better approach. Ian.