From: Wei Liu Subject: Re: [PATCH RFC 4/4] hvmloader:ovmf: setup E820 map Date: Wed, 20 Nov 2013 12:19:02 +0000 Message-ID: <20131120121902.GG12622@zion.uk.xensource.com> References: <1384531165-3600-1-git-send-email-wei.liu2@citrix.com> <1384531165-3600-5-git-send-email-wei.liu2@citrix.com> <1384883788.16252.68.camel@hastur.hellion.org.uk> <20131119180113.GA12622@zion.uk.xensource.com> <1384942028.28441.17.camel@kazak.uk.xensource.com> <20131120114941.GE12622@zion.uk.xensource.com> <1384948310.28441.61.camel@kazak.uk.xensource.com> <20131120115848.GF12622@zion.uk.xensource.com> <1384949485.28441.70.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vj6kM-0002fE-MS for xen-devel@lists.xenproject.org; Wed, 20 Nov 2013 12:19:06 +0000 Content-Disposition: inline In-Reply-To: <1384949485.28441.70.camel@kazak.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: Ian Campbell Cc: xen-devel@lists.xenproject.org, Wei Liu List-Id: xen-devel@lists.xenproject.org On Wed, Nov 20, 2013 at 12:11:25PM +0000, Ian Campbell wrote: > On Wed, 2013-11-20 at 11:58 +0000, Wei Liu wrote: > > On Wed, Nov 20, 2013 at 11:51:50AM +0000, Ian Campbell wrote: > > > > Regardless of what the OVMF code does I think the e820 table which > > > hvmloader passes through should attempt to accurately describe what > > > hvmloader has done. > > > > > > > It is a bit confusing that SeaBIOS codes is relying on SeaBIOS to > > reserve certain region. I just followed suit. > > Is it? The hvmloader seabios bindings are calling e820_build_table with > "0x100000-sizeof(seabios)" which is supposed to reserve the BIOS region. > (aside: that really ought to be ->bios_address!) > The comment above the call to build_e820_table, "SeaBIOS reserves memory in e820 as necessary so no low reservation". > Or is there some other region which hvmloader sets up which needs > reserving? > > It's ok for the BIOS to end up reserving more, based on the setup which > it does, of course. I think that is what the comment is referring too -- > the fact that SeaBIOS reserves what it allocates. This is in contrast to > ROMBIOS which assumes hvmloader will create an e820 which it likes -- a > relic of the previous tight integration between hvmloader and seabios. > OK, I misread that comment then. Wei. > Ian.