From: Ian Jackson Subject: Re: [PATCH V5 27/32] libxl: libxl-json format and load/store configuration functions Date: Tue, 20 May 2014 16:01:28 +0100 Message-ID: <21371.28232.29735.604758@mariner.uk.xensource.com> References: <1400018054-26038-1-git-send-email-wei.liu2@citrix.com> <1400018054-26038-28-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: <1400018054-26038-28-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.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("[PATCH V5 27/32] libxl: libxl-json format and load/store configuration functions"): > Introduce a new format in libxl userdata store called "libxl-json". This > format contains the deserialized version of domain configuration of a > domain. I don't think "deserialised" means what you think it means here. JSON is a data structure serialisation format. So the structure is serialised, not deserialised. But it would be better to just say "the JSON version" or some such. I don't think I understand what role these two functions play in the public API. libxl_load_domain_configuration doesn't really "load" a configuration; it obtains the configuration of a running domain. But at the moment it doesn't do anything unless store has been called. I can't see why an application would ever want to call libxl_store_domain_configuration. If it did, what would it mean ? Ian.