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] information needed for netbsd porting project

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] information needed for netbsd porting project
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Fri, 11 Jul 2008 16:18:05 +0100
Cc: Michael Litchard <michael@xxxxxxxxxxx>
Delivery-date: Fri, 11 Jul 2008 08:19:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <3dc350d00807081305h7627cbe4ra7341e64ea953961@xxxxxxxxxxxxxx>
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>
References: <3dc350d00807081305h7627cbe4ra7341e64ea953961@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
> I would like to be able to do device driver development on a domU for
> devices that the domO doesn't know about.
> Using the sources for 3.1.2, could someone tell me where to look
> to find the protocol between dom0 and domU used by Xen to do this?
>
> After that, I will need to implement the PCI front-end and back-end
> drivers. Could someone show me some sample code?

Take a look in the XenLinux tree, drivers/xen/pci{front,back} and in the Xen 
hypervisor tree, xen/include/public/io/pciif.h

You may also want to look in the tools/ directory in the hypervisor tree to 
see how devices get assigned to a guest in the firstplace.

Most PCI IO can be done directly by a guest once the PCI passthrough is done.  
Config space changes still need to go through dom0, though.

Cheers,
Mark

-- 
Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/)

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