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

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



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


 


Rackspace

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