Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7ZBq-0002yS-2q for qemu-devel@nongnu.org; Mon, 09 Nov 2009 13:42:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7ZBl-0002uF-Jp for qemu-devel@nongnu.org; Mon, 09 Nov 2009 13:42:09 -0500 Received: from [199.232.76.173] (port=41400 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7ZBl-0002tv-6M for qemu-devel@nongnu.org; Mon, 09 Nov 2009 13:42:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28749) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7ZBj-0003jH-S1 for qemu-devel@nongnu.org; Mon, 09 Nov 2009 13:42:04 -0500 Date: Mon, 9 Nov 2009 16:41:57 -0200 From: Glauber Costa Subject: Re: [Qemu-devel] PC machine types switched to SeaBIOS/gPXE Message-ID: <20091109184157.GA12566@mothafucka.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> <4AEEE775.2030507@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AEEE775.2030507@suse.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Anthony Liguori , Gleb Natapov , "qemu-devel@nongnu.org" , Kevin O'Connor , beth kon , Avi Kivity On Mon, Nov 02, 2009 at 03:06:45PM +0100, Alexander Graf wrote: > 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: > >> > >>> On 11/02/2009 03:15 PM, Alexander Graf wrote: > >>> > >>>> They are taken with -d in_asm,cpu,int after doing: > >>>> > >>>> $ ./x86_64-softmmu/qemu-system-x86_64 -kernel > >>>> ../kvm/arch/x86/boot/bzImage > >>>> > >>>> with a fresh checkout from your kvm kernel tree (make defconfig) and a > >>>> fresh git checkout of qemu (./configure --target-list=x86_64-softmmu) > >>>> > >>>> > >>>> They basically mean that with SeaBIOS the Linux loading code is trying > >>>> to jump off to zeros while at the same place there is useful data > >>>> using > >>>> pcbios.bin. > >>>> > >>>> > >>> 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? > > > > If not, we probably need a protocol where the option rom loads the > > kernel from qemu, rather than qemu poking the kernel into memory. > > > > pc.c: > > } else { > /* High and recent kernel */ > real_addr = 0x10000; > cmdline_addr = 0x20000; > prot_addr = 0x100000; > } > > If I'm not totally mistaken, 0x10000 is < 1MB :-). > > So yes, I think there should be a fw-conf interface that tells qemu to > reload all volatile option rom regions (which it keeps track of for > reset anyway). We just need to make sure it doesn't overwrite the BIOS > itself, as data in there might have been changed already. Can't we put these data somewhere else, and let our int19 handler copy it to the right location?