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] writing PV block drivers for Windows

To: "Pezza" <mario.beccia@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] writing PV block drivers for Windows
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Mon, 22 Oct 2007 20:49:04 +1000
Delivery-date: Mon, 22 Oct 2007 03:49:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <13305487.post@xxxxxxxxxxxxxxx>
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: <AEC6C66638C05B468B556EA548C1A77D01249AB9@trantor> <13305487.post@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcgUkCldR/Jq8tlTQ4ixuWfHpK5cIQABrBmA
Thread-topic: [Xen-devel] writing PV block drivers for Windows
> James,
> 
> I'd be pretty much interested in the evolution this thing had (1 month
has
> passed...).
> Have you got anything functional? Do you need any help with it (I'd be
> extremely interested in this)?

Haven't had as much time as I'd like but things are progressing. I'm
still not sure that the windows side of the block device implementation
is really the correct way to do things...

I need to (yet again) rehash the code that enumerates block devices, and
once I'm happy with that I'll actually have to write some grant table
code, which is probably the main thing missing.

What is implemented:
. A Windows driver for the XenPCI device (eg loads and attaches to it,
and provides interfaces for the other drivers to talk to)
. Hypervisor calls (well... some of them... I'm just adding new ones as
I need them)
. A very basic event channel infrastructure
. A very basic xen bus infrastructure (list, read, watch, unwatch, etc)
. Creation of PDO's for everything returned by 'ls device' (xbd, xif,
etc) - windows then goes looking for drivers to attach to these
. The start of a disk class driver for xbd, which in turn enumerates
what is under device/xbd (eg 768, 5632, etc)

What is not implemented
. Grant table code
. The rest of the disk class driver
. An interface for usermode stuff to be able to talk to the kernel
driver
. A usermode service to monitor shutdown events (no documented way to do
a clean shutdown from kernel mode)
. drivers for network, console, vfb, etc - even if they're just dummy
drivers for now to stop windows asking for them

The pci driver contains the xenbus, event channel, and hypervisor stuff.
Ideally it would provide a ring buffer abstraction too, so the lower
drivers could just send and receive ringbuffer level events... I'll have
to look at a better way of doing that.

If I get time I'll put all the GPL stuff in each source file and put it
up somewhere, but probably not this week.

Thanks

James



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