From: Ian Jackson Subject: Re: [PATCH V5 28/32] libxl: store up-to-date domain configuration as we create domain Date: Tue, 20 May 2014 16:04:48 +0100 Message-ID: <21371.28432.970497.520005@mariner.uk.xensource.com> References: <1400018054-26038-1-git-send-email-wei.liu2@citrix.com> <1400018054-26038-29-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-29-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 28/32] libxl: store up-to-date domain configuration as we create domain"): > This patch utilizes "libxl-json" format and helper functions introduced > in previous patch to store up-to-do domain configuration when creating a > domain. This looks like it's going in the right direction. I agree with Ian C's comments. Also: > @@ -814,6 +819,16 @@ static void initiate_domain_create(libxl__egc *egc, > dcs->guest_domid = domid; > dcs->dmss.dm.guest_domid = 0; /* means we haven't spawned */ > > + /* At this point we've got domid and UUID, store configuration */ > + ret = libxl_store_domain_configuration(ctx, domid, &d_config_saved); > + if (ret) { > + LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "cannot store domain configuration: %d", This line needs wrapping. Ian.