From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLJgZ-000484-BW for qemu-devel@nongnu.org; Wed, 05 Mar 2014 16:49:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLJgR-0004rx-CC for qemu-devel@nongnu.org; Wed, 05 Mar 2014 16:49:07 -0500 Received: from smtp2-g21.free.fr ([2a01:e0c:1:1599::11]:53190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLJgQ-0004rl-Ng for qemu-devel@nongnu.org; Wed, 05 Mar 2014 16:48:59 -0500 Message-ID: <53179BA8.5050405@reactos.org> Date: Wed, 05 Mar 2014 22:48:24 +0100 From: =?ISO-8859-1?Q?Herv=E9_Poussineau?= MIME-Version: 1.0 References: <1392158763-6552-1-git-send-email-hpoussin@reactos.org> <5314FC9D.5040203@reactos.org> <20140304234922.GA22576@redhat.com> <5316DD1D.1030200@redhat.com> In-Reply-To: <5316DD1D.1030200@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/2] PC: improve emulation correctness List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: =?ISO-8859-1?Q?Herv=E9_Pouss?= =?ISO-8859-1?Q?ineau?= , qemu-devel@nongnu.org, Anthony Liguori , "Michael S. Tsirkin" Le 05/03/2014 09:15, Paolo Bonzini a =E9crit : > Il 05/03/2014 00:49, Michael S. Tsirkin ha scritto: >> On Mon, Mar 03, 2014 at 11:05:17PM +0100, Herv=E9 Poussineau wrote: >>> Ping. >>> >>> QEMU crash at reboot is due to not resetting PAM registers at i440fx >>> reset, but a patch has already been rejected on ML: >>> http://lists.gnu.org/archive/html/qemu-devel/2013-02/msg02928.html >>> >>> Herv=E9 >> >> I thought an alternative fix is being worked on? >> http://lists.gnu.org/archive/html/qemu-devel/2013-02/msg02967.html > > Herv=E9, how does the BIOS do the reset? > > Paolo At cold boot, BIOS is shadowed to RAM, and then hot-patched, so a warm bo= ot won't do the same thing. At BIOS exit, BIOS jumps to the new warm boot path. This warm path doesn't work and crashes QEMU with "qemu: fatal: Trying to= execute code outside RAM or ROM at 0x000a1249" ; I've no idea why exactl= y. Resetting PAM registers prevents the shadowed copy to be visible, and BIO= S does again a cold boot, which works. Herv=E9