From: Ewan Mellor Subject: Re: [PATCH][Xend] Fix disappearance of managed hvm domains on xend restart Date: Thu, 29 Mar 2007 23:47:15 +0100 Message-ID: <20070329224715.GC7427@leeni.uk.xensource.com> References: <45F740D5.8090708@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <45F740D5.8090708@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jim Fehlig Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Mar 13, 2007 at 06:24:53PM -0600, Jim Fehlig wrote: > With c/s 14341, I noticed that managed HVM domains are not displayed by > 'xm list' after restarting xend. When restarting xend and consequently > reading the managed domain config files, parsing fails on HVM domains > due to empty config items in the sexpr. So for example 'xm new > hvm_config_file' results in the following snippet from > /var/lib/xend/domains//config.sxp: > > (platform > ((fda ) > (vncunused 1) > (fdb ) > > When xend is restarted and the various config files read/parsed, it > cannot cope with the config items containing no values (e.g. fda or fdb > above). > > This patch prevents writing the config items when their values are > empty. Perhaps there is a more appropriate fix but this patch corrects > the described behavior. Applied, thank you, and sorry for the delay. Ewan.