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] Is there example code and/or documentation for developin

To: Randy Thelen <rthelen@xxxxxxxxxx>
Subject: Re: [Xen-devel] Is there example code and/or documentation for developing a Xen back-end/front-end driver pair?
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Wed, 28 Jun 2006 14:06:27 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 28 Jun 2006 06:06:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <2C5D88C0-22CB-4D0A-BF3E-A31FEFAA404B@xxxxxxxxxx>
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: <9E4997CB-BF83-4383-8F87-96E095769BB6@xxxxxxxxxx> <44A054D6.5050309@xxxxxxxxxx> <0BB288FE-5FDF-49E5-B995-8239CB794108@xxxxxxxxxx> <20060626223121.GA15782@xxxxxxxxxxxxxxxxxxxxxx> <2C5D88C0-22CB-4D0A-BF3E-A31FEFAA404B@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Mon, Jun 26, 2006 at 03:45:04PM -0700, Randy Thelen wrote:

> Ewan Mellor wrote:
> 
> >Attached are some notes of mine.  They are quite old, but I think  
> >it all is
> >pretty much relevant.
> >
> >Basically, a backend watches /local/domain/0/backend/<deviceClass>  
> >and a
> >frontend watches /local/domain/<domID>/device/<deviceClass>.  When  
> >the tools
> >write into those directories in the store, the drivers get a watch  
> >fired, and
> >check those directories to see the new device details.  The new  
> >internal state
> >is created based on that.
> >
> >If you are using the normal Xenbus code, then you can register your  
> >device
> >driver with the Xenbus layer, and much of this is done for you.
> >
> >The drivers themselves use a simple state machine to handshake  
> >between front
> >and backends.
> >
> >The backends use hotplug / udev events inside domain 0 to trigger  
> >scripts for
> >simple bringup/teardown stuff, like attaching new vifs to bridges or
> >whatever.  The tools watch for a specific node to be written in the  
> >store to
> >indicate that this hotplug phase has succeeded (it's usually the  
> >one that does
> >the final sanity checking and often has to bail out).
> >
> >HTH,
> 
> IHI {It Helps Indeed!}  Thanks.  Could I encourage you to post those  
> on the XenSource Wiki?

I thought someone had already (obviously not).  I've put them on a
XenSplitDrivers page.

Cheers,

Ewan.


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