Re: [Qemu-devel] [PATCH v3] Fix X86 CPU topology in KVM mode

2011-11-02 Thread Anthony Liguori
On 11/02/2011 03:46 AM, bharata@gmail.com wrote: From: Bharata B Rao 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

Re: [Qemu-devel] [PATCH v3] Fix X86 CPU topology in KVM mode

2011-11-02 Thread Jan Kiszka
On 2011-11-02 09:46, bharata@gmail.com wrote: > From: Bharata B Rao > > 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

[Qemu-devel] [PATCH v3] Fix X86 CPU topology in KVM mode

2011-11-02 Thread bharata . rao
From: Bharata B Rao 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 info