From: nicko.koinkoin@free.fr Subject: Device drivers and Xend Date: Thu, 07 Sep 2006 12:12:40 +0200 Message-ID: <1157623960.44fff098dcdd9@imp1-g19.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi everybody I am currently writting a split device driver for a custom device. I have understood the way it works, I wrote the code (kernel module) but currently it is static (i.e. port number) because I am not using Xend. Bu= t the event channel is created (with a static port number for the backend), and= when I send event from frontend domU the handler is called in my backend domai= n. But I can't do the same for the communication ring (shared memory page). So I have to use Xend, but I don't know how to add a new device type in X= end, i.e. which files are needed, ... I looked at blkif.py and netif.py, I kno= w I have to write such a script for my new device, but what are the classes/o= bject that must be present, the same for the methods ? Where these functions ar= e called in Xend ? I also looked at messages.py, I imagine I have to add ne= w message types but are there rules to follow ? Also how do I set up a virtual custom device for the domains (XendDomainI= nfo.py ?) ? In fact I search for a manual describing in details Xend, like a HowTo Xe= nd device drivers, describing the files (python scripts) and how to use them= , what I didn't find in the ML. I am using xen-2.0.7. If somebody can give me advice. Thanks a lot.