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] Xenbus behaviour

To: Glauber de Oliveira Costa <gcosta@xxxxxxxxxx>
Subject: Re: [Xen-devel] Xenbus behaviour
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Thu, 14 Dec 2006 10:10:38 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Dec 2006 02:10:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061213201159.GA22520@xxxxxxxxxx>
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: <20061213201159.GA22520@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Wed, Dec 13, 2006 at 06:11:59PM -0200, Glauber de Oliveira Costa wrote:

> Hello folks,
> 
> I've noticed today that some xenbus state changes are reported twice, as
> in the follow example from dmesg:
> 
> state is 4 (Connected), /local/domain/8/device/vif/4/state,
> /local/domain/8/device/vif/4/stateDele
> state is 4 (Connected), /local/domain/8/device/vif/4/state,
> /local/domain/8/device/vif/4/stateDele
> 
> I'm not sure whether this is legal or a bug.

Each watch should fire once when you register it, and then once per write per
registration.  Do you have a watch on the state node specifically and then one
higher up that device tree?  If your print statement happens on every watch
regardless of what caused it, then that would do it.

The easiest way to find out is to turn on Xenstored tracing
(http://wiki.xensource.com/xenwiki/XenDebugging) as this will give you a trace
message for every single watch registration, watch firing, read and write.

Ewan.

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

<Prev in Thread] Current Thread [Next in Thread>