From: Keir Fraser Subject: Re: back/frontend drivers HelloWorld Date: Thu, 22 Sep 2005 15:18:25 +0100 Message-ID: References: <200509221746.32758.tiger@swsoft.mipt.ru> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200509221746.32758.tiger@swsoft.mipt.ru> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anton Korenyushkin Cc: xen-devel List-Id: xen-devel@lists.xenproject.org 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