From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4yLK-00028U-Si for qemu-devel@nongnu.org; Thu, 01 Aug 2013 15:15:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4v86-0000ev-6r for qemu-devel@nongnu.org; Thu, 01 Aug 2013 11:49:42 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:58716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4v85-0000ZL-Vp for qemu-devel@nongnu.org; Thu, 01 Aug 2013 11:49:30 -0400 Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 1 Aug 2013 16:49:27 +0100 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id B66B3C90026 for ; Thu, 1 Aug 2013 11:49:23 -0400 (EDT) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r71ECi9G20512952 for ; Thu, 1 Aug 2013 10:12:45 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r71ECiX8021726 for ; Thu, 1 Aug 2013 11:12:44 -0300 From: "Jason J. Herne" Date: Thu, 1 Aug 2013 10:12:31 -0400 Message-Id: <1375366359-11553-1-git-send-email-jjherne@us.ibm.com> Subject: [Qemu-devel] [PATCH 0/8] [PATCH RFC v3] s390 cpu hotplug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: afaerber@suse.de, agraf@suse.de, borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com, imammedo@redhat.com, qemu-devel@nongnu.org, ehabkost@redhat.com Cc: "Jason J. Herne" From: "Jason J. Herne" Latest code for cpu Hotplug on S390 architecture. This one is vastly simpler than v2 as we have decided to avoid the command line specification of -device s390-cpu. The last version can be found here: http://lists.gnu.org/archive/html/qemu-devel/2013-06/msg01183.html There is also a patch in this series to add cpu-add to the Qemu monitor interface. Hotplugged cpus are created in the configured state and can be used by the guest after the guest onlines the cpu by: "echo 1 > /sys/bus/cpu/devices/cpuN/online" Hot unplugging is currently not implemented by this code. Jason J. Herne (8): s390-qemu: cpu hotplug - Define New SCLP Codes s390-qemu: cpu hotplug - SCLP CPU Info s390-qemu: cpu hotplug - SCLP Event integration s390-qemu: cpu hotplug - Storage key global access s390-qemu: cpu hotplug - ipi_states enhancements s390-qemu: cpu hotplug - s390 cpu init improvements for hotplug s390-qemu: cpu hotplug - Implement hot_add_cpu hook qemu-monitor: HMP cpu-add wrapper hmp-commands.hx | 13 ++++ hmp.c | 10 ++++ hmp.h | 1 + hw/s390x/Makefile.objs | 2 +- hw/s390x/event-facility.c | 7 +++ hw/s390x/s390-virtio-ccw.c | 8 ++- hw/s390x/s390-virtio.c | 47 +++++++++------ hw/s390x/s390-virtio.h | 2 +- hw/s390x/sclp.c | 53 +++++++++++++++- hw/s390x/sclpcpu.c | 120 +++++++++++++++++++++++++++++++++++++ include/hw/s390x/event-facility.h | 3 + include/hw/s390x/sclp.h | 41 +++++++++++++ target-s390x/cpu.c | 36 ++++++++++- target-s390x/cpu.h | 7 +++ target-s390x/helper.c | 12 ++++ 15 files changed, 336 insertions(+), 26 deletions(-) create mode 100644 hw/s390x/sclpcpu.c -- 1.7.10.4