From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [Query] Flow of PCI device dedicated to a domU Date: Wed, 16 Jul 2014 09:46:36 -0400 Message-ID: <20140716134636.GJ19585@laptop.dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xenbegn developer Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Jul 16, 2014 at 11:42:05AM +0530, Xenbegn developer wrote: > Hi, > I am trying to understand the flow of how a PCI device driver in domU works > after a PCI device is is assigned to a domU. And by domU do you mean PV or HVM? > > a) If a PCI device is assigned to a domU, this device has to be on a PCI > bus. So as per my view xen would have to somehow provide a PCI Controller > on which this device is attached. > => Is my assumption correct ? If yes how it is done, No then also How > enumeration of this device happens in domU kernel > > b) Is the Configuration space of the PCI device directly accessible to the > domU (assuming the kernel accesses it using memory map) ? If not then it is > trapped by xen > > c) Who assigns the MSI (addr + value) in the PCI device. If Xen then how > Xen does a translation from Physical MSI to guest MSI (where in code) > > Please help me with these doubts > > > Regards > Manish > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel