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] Block front and back connection

To: Daniel Castro <evil.dani@xxxxxxxxx>
Subject: Re: [Xen-devel] Block front and back connection
From: Wei Liu <liuw@xxxxxxxxx>
Date: Tue, 9 Aug 2011 10:27:55 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 08 Aug 2011 19:36:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAP2B85_YZFqLWSqOMJv9wg1_3L7aHMgdrdAfeKbrqb0HHuiYOw@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>
References: <CAP2B85_YZFqLWSqOMJv9wg1_3L7aHMgdrdAfeKbrqb0HHuiYOw@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
On Mon, Aug 08, 2011 at 11:17:52PM +0900, Daniel Castro wrote:
> Hello,
> 
> I am trying to make my frontend block driver connect to xen block
> backend. I have the ring and gref, yet I do not know where in xenstore
> should I write the keys to tell the backend to connect to my frontend.
> 

You can find some clues in libxl_devices.c .

The frontend path is

/local/domain/FRONTEND_DOMID/device/DEVICE_KIND/DEVID

The backend path is

/local/domain/BACKEND_DOMID/backend/BACKEND_KIND/FRONTEND_DOMID/DEVID

Often the BACKEND_DOMID is 0.

And looking into Linux kernel's xen-{blkfront,blkback} helps you a
lot.

Then you can switch xenbus state after proper values are in place, so
that frontend and backend can connect to each other.

Wei.

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

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