xemu/target-i386
Bharata B Rao f2209eb854 Fix X86 CPU topology in KVM mode
apic id returned to guest kernel in ebx for cpuid(function=1) depends on
CPUX86State->cpuid_apic_id which gets populated after the cpuid information
is cached in the host kernel. This results in broken CPU topology in guest.

Fix this by setting cpuid_apic_id before cpuid information is passed to
the host kernel. This is done by moving the setting of cpuid_apic_id
to cpu_x86_init() where it will work for both KVM as well as TCG modes.

Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bharata B Rao <bharata.rao@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-11-02 07:55:05 -05:00
..
cpu.h i386: wire up MSR_IA32_MISC_ENABLE 2011-10-24 21:33:32 -02:00
cpuid.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
helper_template.h Update to a hopefully more future proof FSF address 2009-07-16 20:47:01 +00:00
helper.c Fix X86 CPU topology in KVM mode 2011-11-02 07:55:05 -05:00
helper.h target-i386: implement lzcnt emulation 2009-10-23 17:10:36 +02:00
kvm.c i386: wire up MSR_IA32_MISC_ENABLE 2011-10-24 21:33:32 -02:00
machine.c i386: wire up MSR_IA32_MISC_ENABLE 2011-10-24 21:33:32 -02:00
op_helper.c i386: wire up MSR_IA32_MISC_ENABLE 2011-10-24 21:33:32 -02:00
ops_sse_header.h tcg: Optionally sign-extend 32-bit arguments for 64-bit hosts. 2010-06-16 11:29:11 +02:00
ops_sse.h target-i386: Fix several SSE3 instructions. 2011-09-17 17:13:31 +00:00
svm.h Use new macro QEMU_PACKED for packed structures 2011-09-03 10:45:59 +00:00
TODO Unbreak large mem support by removing kqemu 2009-08-24 08:02:55 -05:00
translate.c target-i386: Remove redundant word mask in port out instructions 2011-10-01 06:21:45 +00:00