[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Block front and back connection



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.