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/
Home Products Support Community News


[Xen-devel] Device drivers and Xend

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Device drivers and Xend
From: nicko.koinkoin@xxxxxxx
Date: Thu, 07 Sep 2006 12:12:40 +0200
Delivery-date: Thu, 07 Sep 2006 03:13:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Internet Messaging Program (IMP) 3.2.5

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. But 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 domain. 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 Xend,
i.e. which files are needed, ... I looked at blkif.py and netif.py, I know I
have to write such a script for my new device, but what are the classes/object
that must be present, the same for the methods ? Where these functions are
called in Xend ? I also looked at messages.py, I imagine I have to add new
message types but are there rules to follow ?

Also how do I set up a virtual custom device for the domains (XendDomainInfo.py
?) ?

In fact I search for a manual describing in details Xend, like a HowTo Xend
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.

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Device drivers and Xend, nicko . koinkoin <=