Re: [Qemu-devel] [PATCH v2] cpu: Correct cpu-hotplug failure

2013-07-25 Thread chenfan
On Thu, 2013-07-25 at 12:08 +0200, Igor Mammedov wrote: > On Thu, 25 Jul 2013 17:49:11 +0800 > Chen Fan wrote: > > > v1-v2: Change cpu_apic_realize to post_vcpu_init. > > > > When useing x86_64-softmmu --enable-kvm boot qemu, cpu-add command fails to > > add a vcpu, >^^^ using > > there

Re: [Qemu-devel] [PATCH v2] cpu: Correct cpu-hotplug failure

2013-07-25 Thread Igor Mammedov
On Thu, 25 Jul 2013 17:49:11 +0800 Chen Fan wrote: > v1-v2: Change cpu_apic_realize to post_vcpu_init. > > When useing x86_64-softmmu --enable-kvm boot qemu, cpu-add command fails to > add a vcpu, ^^^ using > there show (KVM: setting VAPIC address failed). > > The reason is that we use

[Qemu-devel] [PATCH v2] cpu: Correct cpu-hotplug failure

2013-07-25 Thread Chen Fan
v1-v2: Change cpu_apic_realize to post_vcpu_init. When useing x86_64-softmmu --enable-kvm boot qemu, cpu-add command fails to add a vcpu, there show (KVM: setting VAPIC address failed). The reason is that we use an uninitialized cpu->kvm-fd to ioctl. so we move realizing apic to the back of qemu