Re: [Qemu-devel] [RFC qom-cpu v3 00/10] i386: add cpu hot remove support

2013-09-16 Thread chenfan
On Mon, 2013-09-16 at 09:13 +0200, Andreas Färber wrote: > Hi, > > Am 16.09.2013 04:40, schrieb Chen Fan: > > Via implementing ACPI standard methods _EJ0 in bios, after Guest OS hot > > remove > > one vCPU, it is able to send a signal to QEMU, then QEMU could notify > > the assigned vCPU of exiti

Re: [Qemu-devel] [RFC qom-cpu v2 1/8] apic: remove apic_no from apic_init_common()

2013-09-10 Thread chenfan
On Tue, 2013-09-10 at 14:16 +0200, Andreas Färber wrote: > Am 10.09.2013 14:09, schrieb Igor Mammedov: > > On Tue, 10 Sep 2013 17:43:41 +0800 > > Chen Fan wrote: > > > >> the 'apic_no' is increased by one when initialize/create a vCPU each time, > >> which causes APICCommonState s->idx always is

Re: [Qemu-devel] [RFC qom-cpu v2 3/8] qmp: add 'cpu-del' command support

2013-09-10 Thread chenfan
On Tue, 2013-09-10 at 09:52 -0600, Eric Blake wrote: > On 09/10/2013 03:43 AM, Chen Fan wrote: > > Signed-off-by: Chen Fan > > --- > > hw/i386/pc.c | 5 + > > hw/i386/pc_piix.c| 1 + > > include/hw/boards.h | 2 ++ > > include/hw/i386/pc.h | 1 + > > qapi-schema.json | 12

Re: [Qemu-devel] [RFC][PATCH 2/6] cpus: release allocated vcpu objects and exit vcpu thread

2013-08-29 Thread chenfan
On Thu, 2013-08-29 at 07:10 +0200, Andreas Färber wrote: > Am 29.08.2013 04:09, schrieb Chen Fan: > > After ACPI get a signal to eject a vcpu, then it will notify > > the vcpu thread of needing to exit, before the vcpu exiting, > > will release the vcpu related objects. > > > > Signed-off-by: Chen

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 1/1] cpu: Correct cpu-hotplug failure

2013-07-25 Thread chenfan
On Thu, 2013-07-25 at 10:39 +0200, Andreas Färber wrote: > Hi, > > Am 25.07.2013 08:27, schrieb Chen Fan: > > 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 unini

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

2013-07-24 Thread chenfan
On Thu, 2013-07-25 at 14:27 +0800, Chen Fan wrote: > 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

Re: [Qemu-devel] [PATCH 01/15] target-i386: cpu: convert 'family' to static property

2013-07-03 Thread chenfan
On Mon, 2013-06-24 at 13:53 -0300, Eduardo Habkost wrote: > On Wed, Jun 05, 2013 at 03:18:32PM +0200, Igor Mammedov wrote: > > Signed-off-by: Igor Mammedov > > Reviewed-by: Eduardo Habkost Reviewed-by: Chen Fan > > > --- > > target-i386/cpu.c | 17 ++--- > > 1 files changed, 14