Received: from eggs.gnu.org ([2001:4830:134:3::10]:51904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFT2g-0000TB-V5 for qemu-devel@nongnu.org; Wed, 15 Jul 2015 16:12:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFT2b-00057E-TC for qemu-devel@nongnu.org; Wed, 15 Jul 2015 16:12:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFT2b-00056u-ON for qemu-devel@nongnu.org; Wed, 15 Jul 2015 16:12:29 -0400 Date: Wed, 15 Jul 2015 17:12:26 -0300 From: Eduardo Habkost Message-ID: <20150715201226.GA23048@thinpad.lan.raisama.net> References: <1435956459-18454-1-git-send-email-ehabkost@redhat.com> <20150706133933.GD32472@thinpad.lan.raisama.net> <20150709190738.GB30121@potion.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150709190738.GB30121@potion.brq.redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH build-fix] target-i386: emulate CPUID level of real hardware List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Radim =?utf-8?B?S3LEjW3DocWZ?= Cc: Peter Maydell , Paolo Bonzini , QEMU Developers , Andreas =?iso-8859-1?Q?F=E4rber?= , Richard Henderson On Thu, Jul 09, 2015 at 09:07:39PM +0200, Radim Kr=C4=8Dm=C3=A1=C5=99 wro= te: > W10 insider has a bug where it ignores CPUID level and interprets > CPUID.(EAX=3D07H, ECX=3D0H) incorrectly, because CPUID in fact returned > CPUID.(EAX=3D04H, ECX=3D0H); this resulted in execution of unsupported > instructions. >=20 > While it's a Windows bug, there is no reason to emulate incorrect level= . >=20 > I used http://instlatx64.atw.hu/ as a source of CPUID and checked that > it matches Penryn Xeon X5472, Westmere Xeon W3520, SandyBridge i5-2540M= , > and Haswell i5-4670T. >=20 > kvm64 and qemu64 were bumped to 0xD to allow all available features for > them (and to avoid the same Windows bug). >=20 > Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 > Reviewed-by: Eduardo Habkost > Signed-off-by: Eduardo Habkost Thanks, applied to x86 tree. As the existing code prevents a guest OS from running, I consider it a bug fix. --=20 Eduardo