From: "David Carr" Subject: Re: PCI code Xen 2 -> Xen 3 Date: Fri, 2 Jun 2006 12:11:53 -0500 (CDT) Message-ID: <54910.128.42.6.124.1149268313.squirrel@dcarr.org> References: <49655.128.42.6.124.1149190947.squirrel@dcarr.org> Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: David Carr , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Keir, Thanks for your reply about the PCI changes in Xen 3. Since Xen no longe= r handles PCI devices, two questions come up for me. Firstly, I assume that domain 0 now performs the PCI masking functions required to hide devices dedicated to a specific domain (other than domai= n 0). Is this the case? Also, in Xen 2 the hypervisor had knowledge of which devices were assigne= d to what domain. Now there doesn't seem to be any notion of a "device" in Xen-3. How does the hypervisor assign/verify devices to non-dom-0 domains? Thanks for your time, David Carr > > On 1 Jun 2006, at 20:42, David Carr wrote: > >> I'm porting some code from 2 to 3 that did some PCI configuration i= n >> the hypervisor. A lot of the Xen code that supported this seems to >> have moved. For example, in Xen 2 there was a header file >> (xen/include/xen/pci.h) that defined the pci_dev struct and several >> other things. Where is that sort of code located now? > > Lots of platform initialisation and management has been moved to > domain0. Xen itself no longer knows anything at all about PCI. Instead > we use the domain0 guest OS's PCI subsystem unmodified. > >> What major Xen architectural changes should I be aware of? I've read >> the >> developer presentations on the Xen website and checked the Wiki. Is >> there >> other documentation? > > You've just bumped into one of the biggest ones. :-) > > -- Keir > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >