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: Wei Liu <liuw@xxxxxxxxx>
Subject: Re: [Xen-devel] Block front and back connection
From: Daniel Castro <evil.dani@xxxxxxxxx>
Date: Tue, 9 Aug 2011 17:38:09 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 09 Aug 2011 01:39:30 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=SkYyGTFuoah6wO6rafkqpE2Vki4pg62U8r46wKxVxYE=; b=VM4+8kpNXJh5myW4W3NRDdd2sAd1qLwEEdipU+Z5yJumCyurUDzkYwPj0aXLMNo+Z5 y3ZdHRbqncsyJGDx5/ZGUO2I+6nDGeSL5zOOEI3bDCSQOghszV+cjlnM3f+c2GyuGHfH l3Erhksjk9H1EloftKGD/M4EN2to9lDjVLBq8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110809022755.GA1783@limbo>
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> <20110809022755.GA1783@limbo>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, Aug 9, 2011 at 11:27 AM, Wei Liu <liuw@xxxxxxxxx> wrote:
> 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.
>

Thank, this is what I was looking for!

Daniel



-- 
+-=====---------------------------+
| +---------------------------------+ | This space intentionally blank
for notetaking.
| |   | Daniel Castro,                |
| |   | Consultant/Programmer.|
| |   | U Andes                         |
+-------------------------------------+

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