Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5BMF-0007ft-Q7 for qemu-devel@nongnu.org; Mon, 02 Nov 2009 23:51:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5BMB-0007fO-Rq for qemu-devel@nongnu.org; Mon, 02 Nov 2009 23:51:03 -0500 Received: from [199.232.76.173] (port=56135 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5BMB-0007fL-M8 for qemu-devel@nongnu.org; Mon, 02 Nov 2009 23:50:59 -0500 Received: from imta-38.everyone.net ([216.200.145.38]:42758 helo=omta0104.mta.everyone.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5BMB-00011c-6l for qemu-devel@nongnu.org; Mon, 02 Nov 2009 23:50:59 -0500 Date: Mon, 2 Nov 2009 23:50:56 -0500 From: Kevin O'Connor Subject: Re: [Qemu-devel] PC machine types switched to SeaBIOS/gPXE Message-ID: <20091103045056.GA13246@morn.localdomain> References: <4AEAFE39.1030302@us.ibm.com> <4AEED5EC.8000406@suse.de> <4AEED9D8.2020307@redhat.com> <4AEEDB75.3090100@suse.de> <4AEEDF86.7080009@redhat.com> <20091102135107.GA9856@morn.localdomain> <4AEEE4F8.1020409@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AEEE4F8.1020409@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Anthony Liguori , beth kon , Alexander Graf , Gleb Natapov , "qemu-devel@nongnu.org" On Mon, Nov 02, 2009 at 03:56:08PM +0200, Avi Kivity wrote: > On 11/02/2009 03:51 PM, Kevin O'Connor wrote: >> On Mon, Nov 02, 2009 at 03:32:54PM +0200, Avi Kivity wrote: >>> Is seabios clobbering memory? Gleb/Kevin? >> I have not tested with the -kernel option before. I believe you may >> be running into the clearing of memory that PMM does - see >> malloc_finalize() in src/pmm.c. The PMM spec requires that low memory >> be cleared before starting the boot process. > Likely. Alex, does -kernel use memory below 1MB? Can it be moved > elsewhere? I've confirmed that commenting out the memset in malloc_finalize() fixes the reported problem. Removing the memset is probably okay for the short-term, but it would contradict the PMM spec, so we'll need some kind of long-term solution. Also, SeaBIOS wont clear high-memory, but nothing stops SeaBIOS from using high memory for scratch space during init. > If not, we probably need a protocol where the option rom loads the > kernel from qemu, rather than qemu poking the kernel into memory. Yes, I'd prefer to see this. In earlier emails, Gleb made a reference to a qemu-cfg "stream" interface that is used for acpi tables - maybe the kernel could be put in one of the streams and the rom could copy it into ram on boot. Let me know what you wish to do. -Kevin