Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeeK1-0008M8-3J for qemu-devel@nongnu.org; Mon, 08 Feb 2010 19:51:21 -0500 Received: from [199.232.76.173] (port=41460 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeeK0-0008Lh-Mp for qemu-devel@nongnu.org; Mon, 08 Feb 2010 19:51:20 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeeJz-0000to-13 for qemu-devel@nongnu.org; Mon, 08 Feb 2010 19:51:20 -0500 Received: from mail-vw0-f45.google.com ([209.85.212.45]:63874) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeeJy-0000tT-Ni for qemu-devel@nongnu.org; Mon, 08 Feb 2010 19:51:18 -0500 Received: by vws7 with SMTP id 7so954003vws.4 for ; Mon, 08 Feb 2010 16:51:17 -0800 (PST) Date: Mon, 8 Feb 2010 19:51:10 -0500 From: Kevin O'Connor Message-ID: <20100209005110.GC18282@morn.localdomain> References: <4B6FE4BD.5010304@siemens.com> <8D0A564F20EB4421B2CC199C47C63EA6@FSCPC> <4B70615D.2080406@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B70615D.2080406@siemens.com> Subject: [Qemu-devel] Re: Seabios dislikes -M isapc List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel , Sebastian Herbszt On Mon, Feb 08, 2010 at 08:09:17PM +0100, Jan Kiszka wrote: > Sebastian Herbszt wrote: > > Jan Kiszka wrote: > >> Hi, > >> > >> Seabios seems to have some assumptions built in that break when -M isapc > >> is selected. Is this supposed to work or is isapc about to die? > > > > SeaBIOS doesn't POST if the F-segment is not writeable [1]. A possible, but IMO > > wrong fix was posted on the list [2]. > > > > [1] http://lists.gnu.org/archive/html/qemu-devel/2009-11/msg01188.html > > [2] http://lists.gnu.org/archive/html/qemu-devel/2009-12/msg00445.html > > > > Indeed, [2] makes it work again. > > But taking away IO_MEM_ROM really looks like a lazy workaround. I don't > know how much Seabios needs to write - can't it use normal RAM for this? Handling a read-only f-segment in SeaBIOS would result in significant code complexity, and some features (like smbios) couldn't be made to work at all. I believe it would be far simpler to add a mechanism for locking/unlocking the f-segment in non-pci mode than it would be to make seabios work with a read-only f-segment. Finally, in the normal pci enabled case, both SeaBIOS and bochs bios will lock the f-segment regardless of how it starts. So, the patch at [1] is pretty harmless and it leads to an overall simplification. -Kevin