From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi6EZ-0004i6-UD for qemu-devel@nongnu.org; Wed, 07 May 2014 14:06:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wi6EM-0007Kf-QO for qemu-devel@nongnu.org; Wed, 07 May 2014 14:06:23 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:53915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi6EM-0007Jz-Ju for qemu-devel@nongnu.org; Wed, 07 May 2014 14:06:10 -0400 Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 7 May 2014 12:06:08 -0600 Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 690E33E4003B for ; Wed, 7 May 2014 12:06:06 -0600 (MDT) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by b03cxnp08028.gho.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s47I66ao40960138 for ; Wed, 7 May 2014 20:06:06 +0200 Received: from d03av05.boulder.ibm.com (localhost [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s47I64Pt007956 for ; Wed, 7 May 2014 12:06:05 -0600 From: Matthew Rosato Date: Wed, 7 May 2014 14:05:55 -0400 Message-Id: <1399485959-15579-1-git-send-email-mjrosato@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v3 0/4] s390: Support for Hotplug of Standby Memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: agraf@suse.de, borntraeger@de.ibm.com, aliguori@amazon.com, imammedo@redhat.com, cornelia.huck@de.ibm.com, pbonzini@redhat.com, rth@twiddle.net This patchset adds support in s390 for a pool of standby memory, which can be set online/offline by the guest (ie, via chmem). New options, maxmem and slots, are added to the QEMU command line memory parameter to specify the total amount of memory available to the guest as well as the number of memory slots available. As part of this work, additional results are provided for the Read SCP Information SCLP, and new implentation is added for the Read Storage Element Information, Attach Storage Element, Assign Storage and Unassign Storage SCLPs, which enables the s390 guest to manipulate the standby memory pool. This patchset is based on work originally done by Jeng-Fang (Nick) Wang. Changes for v3: * Remove some patches shared with ACPI memory hotplug that are now applied to master * Fix in sclp.h to avoid compiler error for s390x-linux-user mode * Fix in s390-virtio-ccw.c to avoid checking the value of mhd->increment_size before it's been set with a meaningful value. * Add MAX_STORAGE_INCREMENTS Changes for v2: * Removed the patch that introduced the standby-mem operand and instead included Igor Mammedov's patches that add the mem-opts 'maxmem' and 'slots', with a slight modification due to the removal of qemu_opts_create_nofail. * Patch 3 was inserted to add a new qom object that encapsulate variables used by s390 memory hotplug. Patches 4 and 5 adjusted to use this object. * Added additional code comments and other minor changes per Alexander Graf's comments Igor Mammedov (1): vl.c: extend -m option to support options for memory hotplug Matthew Rosato (3): sclp-s390: Add device to manage s390 memory hotplug virtio-ccw: Include standby memory when calculating storage increment sclp-s390: Add memory hotplug SCLPs hw/s390x/s390-virtio-ccw.c | 44 +++++-- hw/s390x/sclp.c | 277 ++++++++++++++++++++++++++++++++++++++++++-- include/hw/boards.h | 2 + include/hw/s390x/sclp.h | 19 +++ qemu-options.hx | 9 +- target-s390x/cpu.h | 18 +++ target-s390x/kvm.c | 5 + vl.c | 51 ++++++++ 8 files changed, 407 insertions(+), 18 deletions(-) -- 1.7.9.5