From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HHTIC-0004nj-DR for qemu-devel@nongnu.org; Wed, 14 Feb 2007 18:12:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HHTIB-0004ma-LD for qemu-devel@nongnu.org; Wed, 14 Feb 2007 18:12:03 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHTIB-0004mP-C5 for qemu-devel@nongnu.org; Wed, 14 Feb 2007 18:12:03 -0500 Received: from sp604005mt.neufgp.fr ([84.96.92.11] helo=smtp.Neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HHTIA-0004kp-Uj for qemu-devel@nongnu.org; Wed, 14 Feb 2007 18:12:03 -0500 Received: from [84.99.204.208] by sp604005mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0JDH00JFQ740P780@sp604005mt.gpm.neuf.ld> for qemu-devel@nongnu.org; Thu, 15 Feb 2007 00:12:00 +0100 (CET) Date: Thu, 15 Feb 2007 00:12:30 +0100 From: Fabrice Bellard Subject: Re: [Qemu-devel] Re: [PATCH] LinuxBIOS support: map BIOS into ISA address space as RAM instead of ROM In-reply-to: Message-id: <45D3975E.7010101@bellard.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eswierk@arastra.com Cc: qemu-devel@nongnu.org Ed Swierk wrote: > On 2/13/07, Ed Swierk wrote: > >> This patch changes qemu to map the BIOS into ISA address space as RAM >> instead of ROM, allowing LinuxBIOS to run on qemu with no further >> modifications (although the DRAM size is still not detected properly). > > > Unfortunately this isn't the right answer, as modifying the BIOS area > messes things up on soft reboot. What we really want is shadow RAM > support, which Bochs seems to support but qemu doesn't. Shadow RAM is supported in QEMU and I modified the Bochs BIOS to use it. So you do not need to do any patch in QEMU for it. Please read the rombios32.c source in the Bochs BIOS to know what to do in LinuxBIOS. To be precise, one case of RAM shadowing is not implemented (read from BIOS, write to RAM), but it is not strictly needed to write data in the shadow RAM. I needed it once to run a real Award BIOS in QEMU, but I did not have the time to clean up the patch to commit it. Regards, Fabrice.