WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [patch]Make xend to take care of dead qemu-dm process

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [patch]Make xend to take care of dead qemu-dm process
From: shawn <xiaowei.hu@xxxxxxxxxx>
Date: Wed, 21 May 2008 17:10:22 +0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 21 May 2008 02:20:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C459914D.18D19%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C459914D.18D19%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 2008-05-21 at 08:43 +0100, Keir Fraser wrote:
> On 21/5/08 07:33, "shawn" <xiaowei.hu@xxxxxxxxxx> wrote:
> 
> > This patch fix xend as when fatal error happened (e.g. qemu-dm process
> > was killed) 
> > log  error meesge then destroy that domain and clean up the process (no
> > zombies)
> 
> Shouldn't you put the domain into crashed state? Then you would do whatever
> the configured action is on crash.
yes,that may be a better solution.
Do you mean just set the XendDomainInfo._stateSet(DOM_STATE_CRASHED),and
let xend take care of the left things?

But I can't find DOM_STATE_CRASHED like constant defined,there is
only DOM_STATE_HALTED,DOM_STATE_RUNNING,etc. So not sure this could
work...

thanks

Xiaowei
> 
>  -- Keir
> 
> 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel