From: Wei Liu Subject: Re: [PATCH] hvmloader: write extra memory in CMOS Date: Tue, 12 Nov 2013 12:37:26 +0000 Message-ID: <20131112123726.GH13369@zion.uk.xensource.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> <78cdb48d-84f9-4884-8e58-26f01c635ef6@email.android.com> <52822D8C0200007800102528@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VgDDy-000434-37 for xen-devel@lists.xenproject.org; Tue, 12 Nov 2013 12:37:42 +0000 Content-Disposition: inline In-Reply-To: <52822D8C0200007800102528@nat28.tlf.novell.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: Jan Beulich Cc: xen-devel@lists.xenproject.org, Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Tue, Nov 12, 2013 at 12:30:52PM +0000, Jan Beulich wrote: > >>> On 12.11.13 at 13:11, Konrad Rzeszutek Wilk wrote: > > Ian Campbell wrote: > >>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! > > That's the first time I hear about this - there are a couple of more > or less standard locations in CMOS where some of the memory > gets reported, but all are at most two bytes wide and (having at > best 64k granularity) don't allow expressing memory beyond 4Gb. > > Now, if there is a standard for the locations used here, fine with > me (but it should be referenced in the commit message then). But > if this is custom, then I wonder (a) how compatible such an > extension is going to be and (b) why it needs to be restricted to > 3 bytes (allowing to cover only up to 1Tb). > It's not custom. AFAICT Boches reads this, seabios reads this (when not running on Xen) and OVMF reads this as well. http://bochs.sourceforge.net/doc/docbook/development/cmos-map.html However in some CMOS maps I found those bytes are marked as reserved. That's why I say "Some BIOSes" in comment. http://www.bioscentral.com/misc/cmosmap.htm Wei. > Jan