From: Ian Campbell Subject: Re: [PATCH RFC 4/4] hvmloader:ovmf: setup E820 map Date: Wed, 20 Nov 2013 12:11:25 +0000 Message-ID: <1384949485.28441.70.camel@kazak.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vj6d0-0002Hj-FA for xen-devel@lists.xenproject.org; Wed, 20 Nov 2013 12:11:30 +0000 In-Reply-To: <20131120115848.GF12622@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: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org 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!) 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. Ian.