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] back/frontend drivers HelloWorld

To: Anton Korenyushkin <tiger@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] back/frontend drivers HelloWorld
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 22 Sep 2005 15:18:25 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 22 Sep 2005 14:11:14 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200509221746.32758.tiger@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/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: <200509221746.32758.tiger@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 22 Sep 2005, at 14:46, Anton Korenyushkin wrote:


I'm reading blkback/front driver's code, but it is too complicated. I've
understood that i should use message rings for my task (i've read
docs/misc/blkif-drivers-explained.txt too). But how to get such ring?

May be a simple example of solution such problem exists, so could you point me
on this example?

You bootstrap yourself via xenbus. You have a pre-agreed location in the xenstore hieararchy where the frontend driver writes key-value pairs containing the grant reference for the page containing the message rings, and an event channel for async notifications.

See the xenbus.c files in each backend driver directory for examples.

 -- Keir


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