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] race in xenstore?

To: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] race in xenstore?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 28 Apr 2010 01:46:59 +0100
Cc:
Delivery-date: Tue, 27 Apr 2010 17:47:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BD6A292.9000408@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acrl5SaImPLnxBExR9qhKHfW0UgW3gAhyh/V
Thread-topic: [Xen-devel] race in xenstore?
User-agent: Microsoft-Entourage/12.23.0.091001
On 27/04/2010 09:38, "Juergen Gross" <juergen.gross@xxxxxxxxxxxxxx> wrote:

> - the domU tries to read the entry, xenstored seems not to know it:
>     IN 0x61b9c0 20100423 22:25:42 READ (bs2/vmid )
>     OUT 0x61b9c0 20100423 22:25:42 ERROR (ENOENT )
> - on domU side, I don't see the ENOENT, but read the string "OK"!
> - a little bit later (same second) the entry is written by dom0:
>     IN 0x625c50 20100423 22:25:42 WRITE (/local/domain/169/bs2/vmid 2)
>     OUT 0x625c50 20100423 22:25:42 WRITE (OK )
> 
> Xen version is 3.3.1
> 
> I'm not familiar with the xenstored internals, perhaps someone has an idea
> what is happening here?

Not sure, but it would be weird for this to be a race since xenstored is
single-threaded and deals with only one request at a time, to completion.

I would focus on why xenstored logging says ENOENT, but the domU sees 'OK'.
The xenstored logic is not so hard to figure out, compared with xend for
example. ;-)

 -- Keir



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

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