[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] x86/AMD: use correct shift count when merging model and stepping



On 15/12/2011 11:21, "Jan Beulich" <JBeulich@xxxxxxxx> wrote:

> ... for legacy errata matching.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Acked-by: Keir Fraser <keir@xxxxxxx>

> --- 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
> }
>  
> /* OSVW unavailable or ID unknown, match family-model-stepping range */
> - ms = (cpu->x86_model << 8) | cpu->x86_mask;
> + ms = (cpu->x86_model << 4) | cpu->x86_mask;
> while ((range = va_arg(ap, int))) {
> if ((cpu->x86 == AMD_MODEL_RANGE_FAMILY(range)) &&
>    (ms >= AMD_MODEL_RANGE_START(range)) &&
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.