From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJKWQ-0000K6-KY for qemu-devel@nongnu.org; Tue, 10 Sep 2013 05:46:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJKWL-0006nb-Dz for qemu-devel@nongnu.org; Tue, 10 Sep 2013 05:46:10 -0400 Received: from [222.73.24.84] (port=26110 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJKWL-0006iZ-2Q for qemu-devel@nongnu.org; Tue, 10 Sep 2013 05:46:05 -0400 From: Chen Fan Date: Tue, 10 Sep 2013 17:43:40 +0800 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [RFC qom-cpu v2 0/8] i386: add cpu hot remove support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Via implementing ACPI standard methods =5FEJ0 in bios, after Guest OS hot r= emove one vCPU, it is able to send a signal to QEMU, then QEMU could notify the assigned vCPU of exiting. this work is based on Andreas F=C3=A4rber's qom-cpu branch tree. git://github.com/afaerber/qemu-cpu.git this series patches must be used with seabios patch and KVM patch together. =20 for KVM patches: http://comments.gmane.org/gmane.comp.emulators.kvm.devel/114347 for seabios patches: http://comments.gmane.org/gmane.comp.emulators.qemu/230460 Chen Fan (8): apic: remove apic=5Fno from apic=5Finit=5Fcommon() x86: add x86=5Fcpu=5Funrealizefn() for cpu apic remove qmp: add 'cpu-del' command support qom cpu: rename variable 'cpu=5Fadded=5Fnotifier' to 'cpu=5Fhotplug=5Fnotifier' qom cpu: add UNPLUG cpu notifier support i386: implement pc interface pc=5Fhot=5Fdel=5Fcpu() piix4: implement function cpu=5Fstatus=5Fwrite() for vcpu ejection cpus: release allocated vCPU objects cpus.c | 46 ++++++++++++++++++++++++++++ hw/acpi/piix4.c | 66 +++++++++++++++++++++++++++++++++----= ---- hw/cpu/icc=5Fbus.c | 11 +++++++ hw/i386/kvm/apic.c | 6 ++++ hw/i386/pc.c | 34 ++++++++++++++++++++- hw/i386/pc=5Fpiix.c | 1 + hw/intc/apic.c | 7 +++++ hw/intc/apic=5Fcommon.c | 15 ++++++++-- include/hw/boards.h | 2 ++ include/hw/cpu/icc=5Fbus.h | 1 + include/hw/i386/apic=5Finternal.h | 1 + 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 | 25 ++++++++++++---- target-i386/cpu-qom.h | 1 + target-i386/cpu.c | 36 ++++++++++++++++++++++ 22 files changed, 323 insertions(+), 22 deletions(-) --=20 1.8.1.4 =