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/
Home Products Support Community News


Re: [Xen-devel] Re: Getting VBD working with xenstore, again

To: Jacob Gorm Hansen <jacobg@xxxxxxx>
Subject: Re: [Xen-devel] Re: Getting VBD working with xenstore, again
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Thu, 12 Jan 2006 15:55:11 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 12 Jan 2006 16:01:45 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <e08041f30601120642x6b7d8804g9aa12818fd8d161@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/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: <e08041f30601120342t766e8104n6673eda1271b7bf4@xxxxxxxxxxxxxx> <e08041f30601120642x6b7d8804g9aa12818fd8d161@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, Jan 12, 2006 at 03:42:12PM +0100, Jacob Gorm Hansen wrote:

> On 1/12/06, Jacob Gorm Hansen <jacobg@xxxxxxx> wrote:
> > hi,
> >
> > I have the code below, a version of which used to (just before xen3
> > release) work fine for giving my domain access to a block device. I
> > have tried to adjust this based on the python source, but my block
> > device no longer registers in domU :-(
> Got it working, main points was that I had to reverse the order of
> writing to frontend and backend stores (probably not new actually),

You ought to be writing these entries in one transaction, so that they appear
atomically.  This will guarantee that you avoid any race conditions on

> that the physical-device string is now in "%x:%x" format (but the
> virtual-device is not...)

My intention was to change virtual-device so that it was the name rather than
the device number -- there's no reason for dom0's device numbers to be the
same as domU's, as they may be different operating systems -- but it didn't
make it into 3.0, due to lack of time ;-(


Xen-devel mailing list

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