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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] [PATCH] Minor fix to xentop to stop it dying when domain

To: "Graham, Simon" <Simon.Graham@xxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Minor fix to xentop to stop it dying when domains go away at the wrong time
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: 2006年7月25日 16:21:23 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2006年7月25日 08:21:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <342BAC0A5467384983B586A6B0B376710333A6C5@xxxxxxxxxxxxxxxxxxxxx>
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: <342BAC0A5467384983B586A6B0B376710333A6C5@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 14 Jul 2006, at 20:00, Graham, Simon wrote:
Currently, xentop exits with a failure if xenstat_get_node() returns
NULL - this can happen if a VM is deleted between the time
xenstat_get_node() gets the list of VMs and the time it attempts to
collect information about the VMs. This patch modifies xentop to simply
ignore a NULL return and loop around to try the call again.
Note that the patch supplied is against 3.0.testing although I think
unstable is basically the same.
Signed-off-by: Simon Graham Simon.Graham@xxxxxxxxxxx
libxenstat should be fixed so that xenstat_get_node() does not spuriously fail in this way. This could be done by getting the 'collectors' it calls to return better error info -- we can use EAGAIN to cause xenstat_get_node() to rerun itself from scratch rather than returning failure to the caller. Otherwise we're going to need to fix every user of libxenstat, which is stupid.
 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] RE: Network stops responding after some time , Ian Pratt
Next by Date: Re: [Xen-devel] [PATCH] xen x86_64 and CONFIG_FLATMEM , Mark McLoughlin
Previous by Thread: [Xen-devel] [PATCH] Minor fix to xentop to stop it dying when domains go away at the wrong time , Graham, Simon
Next by Thread: RE: [Xen-devel] [PATCH] Minor fix to xentop to stop it dying when domains go away at the wrong time , Graham, Simon
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /