From: Konrad Rzeszutek Wilk Subject: Re: [PATCH] hvmloader: write extra memory in CMOS Date: Tue, 12 Nov 2013 07:11:51 -0500 Message-ID: <78cdb48d-84f9-4884-8e58-26f01c635ef6@email.android.com> References: <1384256460-22158-1-git-send-email-wei.liu2@citrix.com> <28cb4e5a-25e2-404f-97a4-714fb7414757@email.android.com> <1384257624.1883.56.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.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VgCpD-0002I5-4n for xen-devel@lists.xenproject.org; Tue, 12 Nov 2013 12:12:07 +0000 In-Reply-To: <1384257624.1883.56.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 Ian Campbell wrote: >On Tue, 2013-11-12 at 06:52 -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. > >I think that is orthogonal to Wei's fix here. > >As it stands for HVM guests the e820 map is determined by hvmloader, so >it makes sense for it to populate standard CMOS locations with the >values they should have. CMOS has memory values? That is standard PC spec? Yikes! > >> Anyhow why don't we plumb in the libxl the standard memory layout and >> query for that? > >What standard memory layout do you mean? The E820. > >> Or use xenstore? > >That would put a burden on the BIOS to have a xenstore client. Hvmloader already uses xenstore. But I missed the part about this actually being an implementation of a bare metal 'feature'. > >Ian.