From: Jiang Wang Subject: Where is the code for passthrough a PCI device to a PV? Date: Sun, 22 Mar 2009 18:36:41 -0400 Message-ID: <77e29ea90903221536k48444b37s12dea68852779077@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: I am trying to understand the code for passthrough a PCI device to a PV on i386 CPU. What code should I read? I know that linux-xen\drivers\xen\pciback and pcifront is the backend and the frontend for the PCI bus. But I think there should be some other code to allow a domU to access the real device, right? I found some code in xen/common/domctrl.c which do the access control for the io memory. Is that all? What happened when I use a PCI option for "xm create" command to pass-through the device? Where is the code for starting a domU? Thanks. Regards, Jiang