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] How to implement a simple driver in Windows with xen?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] How to implement a simple driver in Windows with xen?
From: "xyu.dai" <xyu.dai@xxxxxxxxx>
Date: Fri, 7 Aug 2009 19:49:51 -0700 (PDT)
Delivery-date: Mon, 17 Aug 2009 07:25:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi. I'm trying to implement dual-way communication between processes in
domain0 and GuestOS.
I'm trying to setup a model like diagram below.

     Domain0                                     GuestOS(windows)
  backend-driver <--> evtchn/share page <-->  frontend-driver
         ^                                                       ^
         |  r/w                                                  | r/w
         v                                                        v
   process A                                              process B

Now, I'm wondering how to write a simple driver in windows with xen. What
the frontend-driver do is just accept several userspace IRPs (read/write...)
and send message to backend-driver, I don't know how to code detaily. 
I've read part of the win-pv drivers, but most of them are constructed in
model like miniport or sth else, which is bind to some device like

Could anyone give me some advice or sample code? 

Thanks a lot!
View this message in context: 
Sent from the Xen - Dev mailing list archive at Nabble.com.

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>