Received: from eggs.gnu.org ([2001:4830:134:3::10]:46842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UickX-0005Xo-Mj for qemu-devel@nongnu.org; Fri, 31 May 2013 23:45:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UickW-0008RH-PR for qemu-devel@nongnu.org; Fri, 31 May 2013 23:45:01 -0400 Received: from mail-qe0-f48.google.com ([209.85.128.48]:55336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UickW-0008RC-L2 for qemu-devel@nongnu.org; Fri, 31 May 2013 23:45:00 -0400 Received: by mail-qe0-f48.google.com with SMTP id 9so167365qea.21 for ; Fri, 31 May 2013 20:45:00 -0700 (PDT) Date: Fri, 31 May 2013 23:44:58 -0400 From: Kevin O'Connor Message-ID: <20130601034458.GB6131@morn.localdomain> References: <1369816047-16384-1-git-send-email-jordan.l.justen@intel.com> <1369816047-16384-2-git-send-email-jordan.l.justen@intel.com> <20130531020612.GA18156@morn.localdomain> <51A89C11.8040108@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51A89C11.8040108@redhat.com> Subject: Re: [Qemu-devel] [PATCH v7 1/4] isapc: Fix non-KVM qemu boot (read/write memory for isapc BIOS) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Jordan Justen , qemu-devel@nongnu.org On Fri, May 31, 2013 at 02:48:17PM +0200, Paolo Bonzini wrote: > Il 31/05/2013 04:06, Kevin O'Connor ha scritto: > > On Wed, May 29, 2013 at 01:27:24AM -0700, Jordan Justen wrote: > >> > The isapc machine with seabios currently requires the BIOS region > >> > to be read/write memory rather than read-only memory. > >> > > >> > KVM currently cannot support the BIOS as a ROM region, but qemu > >> > in non-KVM mode can. Based on this, isapc machine currently only > >> > works with KVM. > >> > > >> > To work-around this isapc issue, this change avoids marking the > >> > BIOS as readonly for isapc. > > How about changing the code to always make the ROM read/write (instead > > of doing it only on isapc). Currently, if the rom is marked as > > read-only, then SeaBIOS makes it read/write as the first thing it > > does. So, making it read-only doesn't really serve any purpose. > > I don't think SeaBIOS can rely on the value of the PAM registers when it > is started via a CPU reset (INIT), can it? SeaBIOS currently detects the PAM registers at startup - if it is in read-only mode it makes it read/write. If it's in read/write mode it leaves it there. That's why I think it is silly to start in read-only mode - the first thing the guest does is make it read/write. -Kevin