From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acuzy-0006ts-97 for qemu-devel@nongnu.org; Mon, 07 Mar 2016 08:15:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acuzt-0006or-54 for qemu-devel@nongnu.org; Mon, 07 Mar 2016 08:14:58 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:58680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acuzs-0006oi-Sk for qemu-devel@nongnu.org; Mon, 07 Mar 2016 08:14:53 -0500 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 7 Mar 2016 13:14:51 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4E09B1B08077 for ; Mon, 7 Mar 2016 13:15:14 +0000 (GMT) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u27DEn1r61341836 for ; Mon, 7 Mar 2016 13:14:49 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u27DEmQr017705 for ; Mon, 7 Mar 2016 06:14:49 -0700 Date: Mon, 7 Mar 2016 14:14:46 +0100 From: Cornelia Huck Message-ID: <20160307141446.384226bd.cornelia.huck@de.ibm.com> In-Reply-To: <1457112875-5209-1-git-send-email-mjrosato@linux.vnet.ibm.com> References: <1457112875-5209-1-git-send-email-mjrosato@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v9 0/7] Allow hotplug of s390 CPUs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Matthew Rosato Cc: dahi@linux.vnet.ibm.com, qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com, imammedo@redhat.com, bharata@linux.vnet.ibm.com, pbonzini@redhat.com, afaerber@suse.de, rth@twiddle.net On Fri, 4 Mar 2016 12:34:28 -0500 Matthew Rosato wrote: > As discussed in the KVM call, we will go ahead with cpu_add for > s390x to get cpu hotplug functionality in s390x now, until > architectures that require a more robust hotplug interface > settle on a design. > > 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 (7): > s390x/cpu: Cleanup init in preparation for hotplug > s390x/cpu: Set initial CPU state in common routine > s390x/cpu: Get rid of side effects when creating a vcpu > s390x/cpu: Tolerate max_cpus > s390x/cpu: Add CPU property links > s390x/cpu: Add error handling to cpu creation > s390x/cpu: Allow hotplug of CPUs > > hw/s390x/s390-virtio-ccw.c | 46 +++++++++++++++++++++- > hw/s390x/s390-virtio.c | 36 +++++++++-------- > hw/s390x/s390-virtio.h | 2 +- > target-s390x/cpu-qom.h | 3 ++ > target-s390x/cpu.c | 96 +++++++++++++++++++++++++++++++++++++++++++--- > target-s390x/cpu.h | 2 + > target-s390x/helper.c | 41 +++++++++++++++++++- > 7 files changed, 200 insertions(+), 26 deletions(-) Thanks, applied to my s390-next branch.