cpuid: Fix multicore setup on Intel
authorAndre Przywara <andre.przywara@amd.com>
Mon, 7 Dec 2009 10:58:02 +0000 (11:58 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 7 Dec 2009 17:13:42 +0000 (11:13 -0600)
commit254585b96f9e4b84ee65817566bc1d12517db3cf
treec6f39e706ab60de18e359608f98e9a2376406271
parentdbedf3b950231404363bd5e7c31e408da8c7159c
cpuid: Fix multicore setup on Intel

The multicore CPUID code detects whether the guest is an Intel or an
AMD CPU, because the Linux kernel is picky about the CmpLegacy bit.
KVM by default passes through the host's vendor, which was not
catched by the code. So fork out the vendor determining bits into a
separate function to be used from both places and always get the real
vendor.
This fixes KVM's multicore setup on Intel CPUs.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Reported-by: Dietmar Maurer <dietmar@proxmox.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/helper.c