x86/cpuid: Fix booting on AMD Phenom 6-core platform
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 2 Mar 2017 19:58:20 +0000 (19:58 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 3 Mar 2017 19:24:29 +0000 (19:24 +0000)
commit6d55c0c316357a412526b9dccd45d3c3abb75227
treec9f558babc2b0d0c22f2fc564e365dfb8413d5ae
parent9d686d1269faea0447f48ed2ce789c4a06756e07
x86/cpuid: Fix booting on AMD Phenom 6-core platform

c/s 5cecf60f4 "x86/cpuid: Handle leaf 0x1 in guest_cpuid()" causes Linux 4.10
to crash during boot.

It turns out to be because of the reported apic_id, which was altered to be
more consistent across guests.  Revert back to the previous behaviour, by
limiting the apic_id adjustment to HVM guests only.  Whomever gets to fixes
topology representation is going to have a lot of fun with non-power-of-2 AMD
boxes.

Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
xen/arch/x86/cpuid.c