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] Source of guest-physical address in PCI BAR for HVM doma

To: David Stone <unclestoner@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Source of guest-physical address in PCI BAR for HVM domain?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sun, 06 Jan 2008 23:15:23 +0000
Cc: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Delivery-date: Sun, 06 Jan 2008 15:08:21 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1a74a8410801040835t5bb40477u128d310f9d1ed201@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchQugNTQdQr0LytEdyO+wAWy6hiGQ==
Thread-topic: [Xen-devel] Source of guest-physical address in PCI BAR for HVM domain?
User-agent: Microsoft-Entourage/11.3.6.070618
I see there's been a small email thread on this topic now, but I want to
point out that the code that configures the PCI BARs initially is not in the
rombios code but is in the hvmloader code. See
tools/formware/hvmloader/hvmloader.c:pci_setup().

 -- Keir

On 4/1/08 16:35, "David Stone" <unclestoner@xxxxxxxxx> wrote:

> I understand that eventually it would be the HVM guest OS that would
> write to the PCI configuration IO port which would get caught be Xen
> and passed along to qemu.  But, this is happending early in the boot
> process before the guest OS proper is even running.  My understanding
> of how PCI systems work is that the BIOS first configures (a subset
> of) the PCI devices, and then the once the real OS is initializing it
> can re-configure any PCI devices it wants to.  Can someone tell me if
> this is correct?
> 
> If so, shouldn't the early PCI configuration from the BIOS be coming
> from qemu itself?  My understanding is that qemu emulates a BIOS for
> HVM domains.



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