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 stress testing

To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
Subject: Re: [Xen-devel] xenbus stress testing
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Fri, 18 Feb 2011 13:01:10 +0100
Cc: James Harper <james.harper@xxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 18 Feb 2011 04:04:13 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1298030477; l=570; s=domk; d=aepfle.de; h=In-Reply-To:Content-Type:MIME-Version:References:Subject:Cc:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=LnhsSlsLhL6y9+5hASO07XG6KEc=; b=MhP7qVEjPw+O4i61FdAaR1YVPxpOG/h9BuoioXfLiXqPn9cxnZYWrqmrmTlTI7zLb6w xPm2XI+bifyAxkLABJeWs1DBWvdrmJRhs/Awk3mMpWy7tuo4aMwC4t9IwHZbqm2O8H317 P5al+zC2X2NTguh1ePDqMH5R433rE8ssQqI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <291EDFCB1E9E224A99088639C47620228CFFAD8287@xxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <AEC6C66638C05B468B556EA548C1A77D01C556B6@trantor> <19805.29093.996401.185391@xxxxxxxxxxxxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01C556C5@trantor> <20110218110524.GA10012@xxxxxxxxx> <291EDFCB1E9E224A99088639C47620228CFFAD8287@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
On Fri, Feb 18, Paul Durrant wrote:

> How do you propose to lock against another VM updating a counter in shared 
> memory?

I thought xenstore uses the same ringbuffer as defined by
DEFINE_RING_TYPES(). But reading the code in
include/xen/interface/io/xs_wire.h shows it has its own logic.

And reading further in xenpaging code, which I had in mind while I wrote
the mail, shows there is a separate spinlock.

I can imagine that even if a lock exists, a VM crashing while holding
the lock can stall all other VMs. So its probably not the best idea.

Olaf

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