x86/AMD: use correct shift count when merging model and stepping
PATCH 1/1 x86/AMD: use correct shift count when merging model and stepping
... for legacy errata matching.
xen/arch/x86/cpu/amd.c +1 -1
@@ -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)) &&
x86/AMD: use correct shift count when merging model and stepping
... for legacy errata matching.
xen/arch/x86/cpu/amd.c +1 -1
@@ -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
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · Jan Beulich
... for legacy errata matching.
Signed-off-by Jan Beulich <[email protected]>
Quoted 18 lines
xen/arch/x86/cpu/amd.c +1
-1@@ -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
[email protected]
http://lists.xensource.com/xen-devel
Wei Huang
Acked-byGood catch. Could you please apply it to xen-4.0 and xen-4.1 trees too?
-Wei
Quoted 27 lines · Keir Fraser
Quoted 3 lines · Jan Beulich
... for legacy errata matching.
Signed-off-by Jan Beulich<[email protected]>Acked-by Keir Fraser<[email protected]>Quoted 18 lines
xen/arch/x86/cpu/amd.c +1
-1@@ -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
[email protected]
http://lists.xensource.com/xen-devel