From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvoCe-0006aG-7I for qemu-devel@nongnu.org; Mon, 09 Nov 2015 10:17:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvoCb-0002m4-GR for qemu-devel@nongnu.org; Mon, 09 Nov 2015 10:17:52 -0500 Received: from e35.co.us.ibm.com ([32.97.110.153]:54252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvoCb-0002ln-8j for qemu-devel@nongnu.org; Mon, 09 Nov 2015 10:17:49 -0500 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 9 Nov 2015 08:17:47 -0700 Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 97FA11FF0046 for ; Mon, 9 Nov 2015 08:05:56 -0700 (MST) Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tA9FHi5P983432 for ; Mon, 9 Nov 2015 08:17:44 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tA9FHi3s019546 for ; Mon, 9 Nov 2015 08:17:44 -0700 From: Matthew Rosato Date: Mon, 9 Nov 2015 10:17:36 -0500 Message-Id: <1447082260-427-1-git-send-email-mjrosato@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/4] s390: Allow hotplug of s390 CPUs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: cornelia.huck@de.ibm.com, borntraeger@de.ibm.com, agraf@suse.de, afaerber@suse.de, rth@twiddle.net The following patchset enables hotplug of s390 CPUs. The standard interface is used -- to configure a guest with 2 CPUs online at boot and 4 maximum: qemu -smp 2,maxcpus=4 Or, when using libvirt: ... 4 ... To subsequently hotplug a CPU: Issue 'cpu-add ' from qemu monitor, or use virsh setvcpus --count , where is the total number of desired guest CPUs. At this point, the guest must bring the CPU online for use -- This can be achieved via "echo 1 > /sys/devices/system/cpu/cpuX/online" or via a management tool like cpuplugd. This patch set is based on work previously done by Jason Herne. Matthew Rosato (4): s390x/cpu: Cleanup init in preparation for hotplug s390x/cpu: Set initial CPU state in common routine s390x/cpu: Add function to set CPU state s390x/cpu: Allow hotplug of CPUs hw/s390x/s390-virtio-ccw.c | 3 ++- hw/s390x/s390-virtio.c | 41 +++++++++++++++++++++++---------------- hw/s390x/s390-virtio.h | 2 +- target-s390x/cpu.c | 48 ++++++++++++++++++++++++++++++++++++++++++++-- target-s390x/cpu.h | 2 ++ 5 files changed, 75 insertions(+), 21 deletions(-) -- 1.9.1