From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLTwL-0006a4-7a for qemu-devel@nongnu.org; Mon, 16 Sep 2013 04:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLTwG-0001BO-Qs for qemu-devel@nongnu.org; Mon, 16 Sep 2013 04:13:49 -0400 Received: from [222.73.24.84] (port=10072 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLTwG-00017p-Ep for qemu-devel@nongnu.org; Mon, 16 Sep 2013 04:13:44 -0400 Message-ID: <1379319092.22688.12.camel@G08FNSTD131468> From: chenfan Date: Mon, 16 Sep 2013 16:11:32 +0800 In-Reply-To: <5236AF93.2070806@suse.de> References: <5236AF93.2070806@suse.de> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [RFC qom-cpu v3 00/10] i386: add cpu hot remove support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?ISO-8859-1?Q?F=E4rber?= Cc: Igor Mammedov , qemu-devel@nongnu.org On Mon, 2013-09-16 at 09:13 +0200, Andreas F=C3=A4rber wrote: > Hi, >=20 > 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 exiting. meanwhile, and intruduce the QOM command = 'cpu-del' to remove > > vCPU from QEMU itself. > >=20 > > this work is based on Andreas F=C3=A4rber's qom-cpu branch tree. > > git://github.com/afaerber/qemu-cpu.git >=20 > Patch 04/10 is not yet 100% like I think it needs to be wrt unrealize, I just use a simpler way to realize the function unrealize. do you have any good suggestion? > but I would like to start cherry-picking APIC preparations from this > series. Since this is still an RFC, permission to do so? Yes=EF=BC=8Cof course=EF=BC=8CThis will be very helpful for me. Thanks. >=20 > Regards, > Andreas >=20 > >=20 > > this series patches must be used with seabios patch and KVM patch toget= her. > >=20 > > for KVM patches: > > http://comments.gmane.org/gmane.comp.emulators.kvm.devel/114347 > >=20 > > for seabios patches: > > http://comments.gmane.org/gmane.comp.emulators.qemu/230460 > >=20 > > Chen Fan (10): > > x86: move apic_state field from CPUX86State to X86CPU > > apic: remove redundant variable 'apic_no' from apic_init_common() > > apic: remove local_apics array and using CPU_FOREACH instead > > x86: add x86_cpu_unrealizefn() for cpu apic remove > > qmp: add 'cpu-del' command support > > qom cpu: rename variable 'cpu_added_notifier' to > > 'cpu_hotplug_notifier' > > qom cpu: add UNPLUG cpu notifier support > > i386: implement pc interface pc_hot_del_cpu() > > piix4: implement function cpu_status_write() for vcpu ejection > > cpus: reclaim allocated vCPU objects > >=20 > > cpu-exec.c | 2 +- > > cpus.c | 51 ++++++++++++++++++++++++-- > > hw/acpi/piix4.c | 66 +++++++++++++++++++++++++++------ > > hw/i386/kvm/apic.c | 8 ++++ > > hw/i386/kvmvapic.c | 8 ++-- > > hw/i386/pc.c | 51 +++++++++++++++++++++----- > > hw/i386/pc_piix.c | 1 + > > hw/intc/apic.c | 81 ++++++++++++++++++++-------------= -------- > > hw/intc/apic_common.c | 6 +-- > > include/hw/boards.h | 2 + > > include/hw/i386/apic_internal.h | 2 - > > include/hw/i386/pc.h | 1 + > > include/qom/cpu.h | 20 ++++++++++ > > include/sysemu/kvm.h | 1 + > > include/sysemu/sysemu.h | 2 +- > > kvm-all.c | 25 +++++++++++++ > > qapi-schema.json | 12 ++++++ > > qmp-commands.hx | 23 ++++++++++++ > > qmp.c | 9 +++++ > > qom/cpu.c | 26 ++++++++++--- > > target-i386/cpu-qom.h | 5 +++ > > target-i386/cpu.c | 57 +++++++++++++++++++++++------ > > target-i386/cpu.h | 4 -- > > target-i386/helper.c | 9 ++--- > > target-i386/kvm.c | 23 +++++------- > > target-i386/misc_helper.c | 8 ++-- > > 26 files changed, 380 insertions(+), 123 deletions(-) > >=20 >=20 >=20