Received: from eggs.gnu.org ([208.118.235.92]:60105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3BIB-00072b-GU for qemu-devel@nongnu.org; Sun, 19 Aug 2012 15:36:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3BIA-0006e5-Gk for qemu-devel@nongnu.org; Sun, 19 Aug 2012 15:36:11 -0400 Received: from mail-vb0-f45.google.com ([209.85.212.45]:56152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3BIA-0006e0-DH for qemu-devel@nongnu.org; Sun, 19 Aug 2012 15:36:10 -0400 Received: by vbip1 with SMTP id p1so4554806vbi.4 for ; Sun, 19 Aug 2012 12:36:09 -0700 (PDT) Date: Sun, 19 Aug 2012 15:36:07 -0400 From: Kevin O'Connor Message-ID: <20120819193606.GB28630@morn.localdomain> References: <1345029140-12338-1-git-send-email-armbru@redhat.com> <1345029140-12338-3-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1345029140-12338-3-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 2/2] pc: Fix RTC CMOS info on RAM for ram_size < 1MiB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: blauwirbel@gmail.com, gleb@redhat.com, qemu-devel@nongnu.org, anthony@codemonkey.ws, avi@redhat.com On Wed, Aug 15, 2012 at 01:12:20PM +0200, Markus Armbruster wrote: > pc_cmos_init() always claims 640KiB base memory, and ram_size - 1MiB > extended memory. The latter can underflow to "lots of extended > memory". Fix both, and clean up some. > > Note: SeaBIOS currently requires 1MiB of RAM, and doesn't check > whether it got enough. SeaBIOS (and Bochs BIOS before it) never checked cmos 0x15-0x18 for memory sizes. Thus, it has only ever supported passing memory in 1MiB chunks. If we really want to communicate fine grained memory sizes, I suggest passing an e820 like map via fw_cfg to SeaBIOS. I don't think it makes sense for SeaBIOS to read new magic cmos settings just to check if it should crash in a slightly different way. -Kevin