From: Wei Liu Subject: Re: [PATCH] hvmloader: write extra memory in CMOS Date: Tue, 12 Nov 2013 12:01:52 +0000 Message-ID: <20131112120152.GG13369@zion.uk.xensource.com> References: <1384256460-22158-1-git-send-email-wei.liu2@citrix.com> <28cb4e5a-25e2-404f-97a4-714fb7414757@email.android.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VgCfM-0001LO-Oe for xen-devel@lists.xenproject.org; Tue, 12 Nov 2013 12:01:56 +0000 Content-Disposition: inline In-Reply-To: <28cb4e5a-25e2-404f-97a4-714fb7414757@email.android.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: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xenproject.org, Wei Liu List-Id: xen-devel@lists.xenproject.org On Tue, Nov 12, 2013 at 06:52:59AM -0500, Konrad Rzeszutek Wilk wrote: > Wei Liu wrote: > >Some firmware, such as OVMF relies on this value to get the size of > >extra memory above 4GB. > > > >Seabios in Xen doesn't need this as it gets e820 directly from Xen. > >Rombios doesn't read this value. > > I was looking at this some time ago for the GPU. I think a better way > is to take advantage that the e820 can be retrieved from the > hypervisor (used to be only for PV - but with thr PVH patches it works > on HVM too). There is code from Gordan that also takes advantage of > e820_hole. > > Anyhow why don't we plumb in the libxl the standard memory layout and > query for that? > > Or use xenstore? I'm hacking a prototype to plumb through necessary information to OVMF. It takes much longer to properly upstream the new protocol. In any case this patch is something nice to have. We can never know when firmware decides to consult this value. Wei.