Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDQkJ-0007JU-0B for qemu-devel@nongnu.org; Wed, 25 Nov 2009 17:53:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDQkD-0007GM-V6 for qemu-devel@nongnu.org; Wed, 25 Nov 2009 17:53:58 -0500 Received: from [199.232.76.173] (port=51296 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDQkD-0007GJ-Pv for qemu-devel@nongnu.org; Wed, 25 Nov 2009 17:53:53 -0500 Received: from qw-out-1920.google.com ([74.125.92.145]:6944) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDQkD-0003Nl-EF for qemu-devel@nongnu.org; Wed, 25 Nov 2009 17:53:53 -0500 Received: by qw-out-1920.google.com with SMTP id 5so39859qwc.4 for ; Wed, 25 Nov 2009 14:53:52 -0800 (PST) Date: Wed, 25 Nov 2009 17:53:49 -0500 From: Kevin O'Connor Subject: Re: [Qemu-devel] Re: POST failure (loop) with isapc and seabios Message-ID: <20091125225349.GA18812@morn.localdomain> References: <20091123111137.GF2999@redhat.com> <11090DAABE9449F7B5D1415C45F8F411@FSCPC> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Nov 25, 2009 at 11:04:20PM +0100, Sebastian Herbszt wrote: >> Do different things during reset depending on CMOS values doesn't sound >> right to me. I don't know what is implemented right now. I thought that >> we reload BIOS on reset. > > Currently the BIOS seems to be only loaded once and not reloaded > during the life time of a VM. > I don't think there is a notion of BIOS reload on real hardware. CPU > access to it is either directed to the rom (power-up configuration, > all those fancy reset conditions) or to ram. I see a "BIOS reload" as equivalent to directing access to rom. > How is shadowing currently implemented in qemu? Is the only BIOS > copy overwritten or is the rom copy separate from the ram copy? My understanding is that both the ram and rom are kept. (Though, on a "BIOS reload" I don't know if the ram is preserved.) To summarize the discussion so far, there seems to be a potential issue with reset: * If qemu doesn't reload the bios (a soft-reset) then there is a potential issue with the bios and option roms not running properly after a system reset invoked by Linux or other modern OSs. * If qemu does reload the bios (a hard-reset) then there is a good chance that old DOS programs will break when they invoke a reset in an attempt to switch from protected mode to real mode. Is that correct? -Kevin