From: "Jan Beulich" Subject: =?utf-8?q?=5BPATCH_2/3=5D_x86=3A_correctly_check_for_?= =?utf-8?q?sub=E2=80=91leaf_zero_of_leaf_7_in_pv=5Fcpuid=28=29?= Date: Mon, 19 Jan 2015 15:27:39 +0000 Message-ID: <54BD307B0200007800056871@mail.emea.novell.com> References: <54BD2F2B0200007800056859@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartD8ED3C7B.1__=" Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YDEEx-0004vB-TJ for xen-devel@lists.xenproject.org; Mon, 19 Jan 2015 15:27:44 +0000 In-Reply-To: <54BD2F2B0200007800056859@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Andrew Cooper , Keir Fraser List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartD8ED3C7B.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Only the low 32 bits are relevant. Signed-off-by: Jan Beulich --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -916,7 +916,7 @@ void pv_cpuid(struct cpu_user_regs *regs break; =20 case 0x00000007: - if ( regs->ecx =3D=3D 0 ) + if ( regs->_ecx =3D=3D 0 ) b &=3D (cpufeat_mask(X86_FEATURE_BMI1) | cpufeat_mask(X86_FEATURE_HLE) | cpufeat_mask(X86_FEATURE_AVX2) | --=__PartD8ED3C7B.1__= Content-Type: text/plain; name="x86-pv-cpuid-leaf7.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-pv-cpuid-leaf7.patch" x86: correctly check for sub-leaf zero of leaf 7 in pv_cpuid()=0A=0AOnly = the low 32 bits are relevant.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/traps.c=0A+++ b/xen/arch/x86/traps.c=0A@@ = -916,7 +916,7 @@ void pv_cpuid(struct cpu_user_regs *regs=0A = break;=0A =0A case 0x00000007:=0A- if ( regs->ecx =3D=3D 0 = )=0A+ if ( regs->_ecx =3D=3D 0 )=0A b &=3D (cpufeat_mask= (X86_FEATURE_BMI1) |=0A cpufeat_mask(X86_FEATURE_HLE) = |=0A cpufeat_mask(X86_FEATURE_AVX2) |=0A --=__PartD8ED3C7B.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartD8ED3C7B.1__=--