]> git.ipfire.org Git - thirdparty/qemu.git/commit
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 22:36:48 +0000 (16:36 -0600)
commit066263f37701687c64af9d8825e3376d069ebfd4
tree0c25140021b7aca43d7f9d8d243e2ef6a4f7cb85
parent20c1a35211a2500935e15b5f30a98b555ebeb2ff
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>
(cherry picked from commit 6d9fef1a02e6efd51e9ebd0130651ca61f75839b)
target-i386/helper.c