Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDtYr-0004R6-QQ for qemu-devel@nongnu.org; Fri, 27 Nov 2009 00:40:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDtYl-0004O6-Qu for qemu-devel@nongnu.org; Fri, 27 Nov 2009 00:40:04 -0500 Received: from [199.232.76.173] (port=43285 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDtYl-0004O3-MT for qemu-devel@nongnu.org; Fri, 27 Nov 2009 00:39:59 -0500 Received: from qw-out-1920.google.com ([74.125.92.145]:48051) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDtYl-0003ez-66 for qemu-devel@nongnu.org; Fri, 27 Nov 2009 00:39:59 -0500 Received: by qw-out-1920.google.com with SMTP id 5so228690qwc.4 for ; Thu, 26 Nov 2009 21:39:58 -0800 (PST) Date: Fri, 27 Nov 2009 00:39:54 -0500 From: Kevin O'Connor Subject: Re: [Qemu-devel] Re: POST failure (loop) with isapc and seabios Message-ID: <20091127053954.GA19207@morn.localdomain> References: <20091123194307.GC13854@redhat.com> <2D659FA33BF64C419243FD76049AFD33@FSCPC> <20091124062810.GZ2999@redhat.com> <20091124143812.GA27783@shareable.org> <20091124144044.GJ2999@redhat.com> <20091125060951.GA17203@shareable.org> <20091125122039.GM2999@redhat.com> <20091125225349.GA18812@morn.localdomain> <3D742E4D630E4B6C9F4BF3EDD0B7C22E@FSCPC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D742E4D630E4B6C9F4BF3EDD0B7C22E@FSCPC> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Herbszt Cc: qemu-devel@nongnu.org, Gleb Natapov On Thu, Nov 26, 2009 at 11:35:52PM +0100, Sebastian Herbszt wrote: > Maybe the expansion rom bar can be used for pci devices like on real > hardware. The bios will check it and load the rom itself instead of > relying on qemu to do the job. SeaBIOS can pull roms from pci space today. Long term, I would prefer to see qemu use this. > If a soft reset is requested with the goal of a transition from > protected to real mode and the bios is reloaded, it should not do > any harm because the internal device states are kept and the cmos > still has the correct shutdown status code for the transition. SeaBIOS stores internal state in the f-segment - it wont function properly if that state is cleared. (For example, disk read requests will fail, e820 requests will fail, etc.) >Bochs > bios doesn't rely on shadowing so none of its internal state is lost > either, but the created tables (smbios, mp table, etc.) will be > gone. Clearing the tables is also broken (though less likely to be noticed). In a nutshell, qemu can't reset the f-segment and expect a resume operation to work. As Gleb pointed out though, it seems this use case is more theoretical than practical, so worrying about this may not be productive. -Kevin