From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh0vE-0003tt-3t for qemu-devel@nongnu.org; Mon, 27 May 2013 13:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uh0vD-0004dl-1t for qemu-devel@nongnu.org; Mon, 27 May 2013 13:09:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh0vC-0004dh-Qe for qemu-devel@nongnu.org; Mon, 27 May 2013 13:09:22 -0400 Date: Mon, 27 May 2013 13:09:17 -0400 From: Luiz Capitulino Message-ID: <20130527130917.3ad8a3a0@redhat.com> In-Reply-To: <519FDA36.1000202@redhat.com> References: <519FDA36.1000202@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Bug 1180970] *** affects all x86_64 soft emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: Duane Voth , Bug 1180970 <1180970@bugs.launchpad.net>, qemu-devel@nongnu.org, Richard Henderson On Fri, 24 May 2013 23:23:02 +0200 Laszlo Ersek wrote: > ------------------------------[ proposed fix ]-------------------------- > diff --git a/target-i386/translate.c b/target-i386/translate.c > index 0e0356f..4fbd6c0 100644 > --- a/target-i386/translate.c > +++ b/target-i386/translate.c > @@ -4813,7 +4813,11 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s, > /* 0x66 is ignored if rex.w is set */ > dflag = 2; > } > - if (!(prefixes & PREFIX_ADR)) { > + if (prefixes & PREFIX_ADR) { > + /* flip it back, 0x67 should have no effect */ > + aflag ^= 1; > + } > + else { > aflag = 2; > } > } > ------------------------------[ proposed fix ]-------------------------- > > I'll post it separately to the list for review. > > Luiz, can you please test it with Windows guests? On Windows 8 I can get past the boot loop point and even see Windows' boot logo, but then I get a black screen (which I guess is the evolution of the blue screen) asking me to reboot the PC saying "Error Code: 0x0000005D". That error code is what I get with Windows 2008, with or without or patch. I googled a bit about it, and it seems to be related to some CPU incompatibility, which makes me think that this is a difference issue (meaning that your patch does fix the boot loop bug).