From: "Jan Beulich" Subject: [PATCH] x86/AMD: use correct shift count when merging model and stepping Date: Thu, 15 Dec 2011 11:21:47 +0000 Message-ID: <4EE9E65B0200007800068188@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part4C63E65B.1__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" Cc: Boris Ostrovsky , wei.huang2@amd.com 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. --=__Part4C63E65B.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ... for legacy errata matching. Signed-off-by: Jan Beulich --- a/xen/arch/x86/cpu/amd.c +++ b/xen/arch/x86/cpu/amd.c @@ -216,7 +216,7 @@ int cpu_has_amd_erratum(const struct cpu } =20 /* OSVW unavailable or ID unknown, match family-model-stepping = range */ - ms =3D (cpu->x86_model << 8) | cpu->x86_mask; + ms =3D (cpu->x86_model << 4) | cpu->x86_mask; while ((range =3D va_arg(ap, int))) { if ((cpu->x86 =3D=3D AMD_MODEL_RANGE_FAMILY(range)) && (ms >=3D AMD_MODEL_RANGE_START(range)) && --=__Part4C63E65B.1__= Content-Type: text/plain; name="amd-errata-model-shift.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="amd-errata-model-shift.patch" x86/AMD: use correct shift count when merging model and stepping=0A=0A... = for legacy errata matching.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/cpu/amd.c=0A+++ b/xen/arch/x86/cpu/amd.c=0A@@ = -216,7 +216,7 @@ int cpu_has_amd_erratum(const struct cpu=0A }=0A =0A = /* OSVW unavailable or ID unknown, match family-model-stepping range = */=0A- ms =3D (cpu->x86_model << 8) | cpu->x86_mask;=0A+ ms =3D = (cpu->x86_model << 4) | cpu->x86_mask;=0A while ((range =3D = va_arg(ap, int))) {=0A if ((cpu->x86 =3D=3D AMD_MODEL_RANGE_FAMILY= (range)) &&=0A (ms >=3D AMD_MODEL_RANGE_START(range)) &&=0A --=__Part4C63E65B.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.xensource.com http://lists.xensource.com/xen-devel --=__Part4C63E65B.1__=--