From: Ian Campbell Subject: Re: [PATCH] OvmfPkg/PlatformPei: allow platform to specify start of PCI MMIO region Date: Mon, 11 Nov 2013 09:45:21 +0000 Message-ID: <1384163121.3189.172.camel@kazak.uk.xensource.com> References: <1383932979-10329-1-git-send-email-wei.liu2@citrix.com> <20131108182534.GA20234@phenom.dumpdata.com> <20131108185102.GL12679@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20131108185102.GL12679@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: edk2-devel@lists.sourceforge.net, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2013-11-08 at 18:51 +0000, Wei Liu wrote: > On Fri, Nov 08, 2013 at 01:25:34PM -0500, Konrad Rzeszutek Wilk wrote: > > On Fri, Nov 08, 2013 at 05:49:39PM +0000, Wei Liu wrote: > > > The original code calculates the start of PCI MMIO region automatically, > > > which is not desirable when running under Xen, as Xen is responsible of > > > setting up respective regions. > > > > What if Xen (hvmloader) also moves the MMIO to a different place and > > size? > > (Basically make e820_host option work with HVM)? This doesn't exist yet, does it? > Good point. We probably need to find a way to retrieve the actual > information during runtime. In the SeaBIOS case hvmloader passes the e820 map to the BIOS (via struct seabios_info) to consume. This then gets modified as SeaBIOS allocates memory and is eventually made available to the OS. (both hvmloader and SeaBIOS will likely need to be extended if/when e820_host gets implemented for HVM) Perhaps hvmloadr/OVMF need a similar mechanism to communicate memory regions and/or PCI bus configuration from hvmloader to UEFI? Ian.