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

[Xen-devel] Re: How is front driver get probed and loaded?

To: Wei Liu <liuw@xxxxxxxxx>
Subject: [Xen-devel] Re: How is front driver get probed and loaded?
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Fri, 24 Jun 2011 14:32:20 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>, Stefano
Delivery-date: Fri, 24 Jun 2011 06:29:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTinHFsnWE35NR+KnuN7b5Ept7VutUw@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: <BANLkTinHFsnWE35NR+KnuN7b5Ept7VutUw@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Fri, 24 Jun 2011, Wei Liu wrote:
> Hi, all
> 
> I've finished a Xen prototype for virtio transport layer. I would like
> to make sure it works as expected before I proceed to specific
> drivers.
> 
> I'm planning to write simple test backend and dummy front driver. But
> I have difficulty understanding how Xen front driver (e.g.
> xen-blkfront) is probed and loaded.
> 
> Do I just need to setup corresponding xenstore entries and it will
> work out of the box?

Xen frontend drivers probing and configuration is all done through
xenstore. The toolstack writes the initial xenstore entries, then the
frontend and the backend fill up the rest.
There is a "state" node on xenstore that identifies in which state the
frontend and the backend are, where 4 is "connected".

I am not sure whether the existing xenstore protocol is going to help
you, I would probably try to stay closer to the behaviour of the virtio
pci protocol instead.

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

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