From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJdlF-0003Ml-PK for qemu-devel@nongnu.org; Fri, 06 Feb 2015 02:55:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJdlB-0005p9-LR for qemu-devel@nongnu.org; Fri, 06 Feb 2015 02:55:33 -0500 Received: from [59.151.112.132] (port=44720 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJdlA-0005oF-V8 for qemu-devel@nongnu.org; Fri, 06 Feb 2015 02:55:29 -0500 Message-ID: <1423209245.3172.3.camel@G08FNSTD140041> From: Zhu Guihua Date: Fri, 6 Feb 2015 15:54:05 +0800 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 00/11] cpu: add i386 cpu hot remove support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhi Yong Wu Cc: QEMU Developers , Tang Chen , chen.fan.fnst@cn.fujitsu.com, isimatu.yasuaki@jp.fujitsu.com, Igor Mammedov , guz.fnst@cn.fujitsu.com, anshul.makkar@profitbricks.com, Andreas =?ISO-8859-1?Q?F=E4rber?= On Tue, 2015-02-03 at 16:41 +0800, Zhi Yong Wu wrote: > HI, > > Can you push the patchset to a branch on github? It will be convenient > for other guys to do some tests. sorry for late reply. I had pushed into https://github.com/zhugh/qemu.git The patchset is on branch cpu-hotplug. Welcome to test, Thanks. Regards, Zhu > > On Wed, Jan 14, 2015 at 3:44 PM, Zhu Guihua wrote: > > This series is based on chen fan's previous i386 cpu hot remove patchset: > > https://lists.nongnu.org/archive/html/qemu-devel/2013-12/msg04266.html > > > > Via implementing ACPI standard methods _EJ0 in ACPI table, after Guest > > OS remove one vCPU online, the fireware will store removed bitmap to > > QEMU, then QEMU could know to notify the assigned vCPU of exiting. > > Meanwhile, intruduce the QOM command 'device_del' to remove vCPU from > > QEMU itself. > > > > The whole work is based on the new hot plug/unplug framework, ,the unplug request > > callback does the pre-check and send the request, unplug callback does the > > removal handling. > > > > This series depends on tangchen's common hot plug/unplug enhance patchset. > > [RESEND PATCH v1 0/5] Common unplug and unplug request cb for memory and CPU hot-unplug > > https://lists.nongnu.org/archive/html/qemu-devel/2015-01/msg00429.html > > > > The is the second half of the previous series: > > [RFC V2 00/10] cpu: add device_add foo-x86_64-cpu and i386 cpu hot remove support > > https://lists.nongnu.org/archive/html/qemu-devel/2014-08/msg04779.html > > > > If you want to test the series, you need to apply the 'device_add foo-x86_64-cpu' > > patchset first: > > [PATCH v3 0/7] cpu: add device_add foo-x86_64-cpu support > > https://lists.nongnu.org/archive/html/qemu-devel/2015-01/msg01552.html > > > > --- > > Changelog since v1: > > -rebase on the latest version. > > -delete patch i386/cpu: add instance finalize callback, and put it into patchset > > [PATCH v3 0/6] cpu: add device_add foo-x86_64-cpu support. > > > > Changelog since RFC: > > -splited the i386 cpu hot remove into single thread. > > -replaced apic_no with apic_id, so does the related stuff to make it > > work with arbitrary CPU hotadd. > > -add the icc_device_unrealize callback to handle apic unrealize. > > -rework on the new hot plug/unplug platform. > > --- > > > > Chen Fan (2): > > x86: add x86_cpu_unrealizefn() for cpu apic remove > > cpu hotplug: implement function cpu_status_write() for vcpu ejection > > > > Gu Zheng (5): > > acpi/cpu: add cpu hot unplug request callback function > > acpi/piix4: add cpu hot unplug callback support > > acpi/ich9: add cpu hot unplug support > > pc: add cpu hot unplug callback support > > cpus: reclaim allocated vCPU objects > > > > Zhu Guihua (4): > > acpi/piix4: add cpu hot unplug request callback support > > acpi/ich9: add cpu hot unplug request callback support > > pc: add cpu hot unplug request callback support > > acpi/cpu: add cpu hot unplug callback function > > > > cpus.c | 44 ++++++++++++++++++++ > > hw/acpi/cpu_hotplug.c | 88 ++++++++++++++++++++++++++++++++++++--- > > hw/acpi/ich9.c | 17 ++++++-- > > hw/acpi/piix4.c | 12 +++++- > > hw/core/qdev.c | 2 +- > > hw/cpu/icc_bus.c | 11 +++++ > > hw/i386/acpi-dsdt-cpu-hotplug.dsl | 6 ++- > > hw/i386/kvm/apic.c | 8 ++++ > > hw/i386/pc.c | 62 +++++++++++++++++++++++++-- > > hw/intc/apic.c | 10 +++++ > > hw/intc/apic_common.c | 21 ++++++---- > > include/hw/acpi/cpu_hotplug.h | 8 ++++ > > include/hw/cpu/icc_bus.h | 1 + > > include/hw/i386/apic_internal.h | 1 + > > include/hw/qdev-core.h | 1 + > > include/qom/cpu.h | 9 ++++ > > include/sysemu/kvm.h | 1 + > > kvm-all.c | 57 ++++++++++++++++++++++++- > > target-i386/cpu.c | 46 ++++++++++++++++++++ > > 19 files changed, 378 insertions(+), 27 deletions(-) > > > > -- > > 1.9.3 > > > > > > >