This patchset adds support in s390 for a pool of standby memory, which can be set online/offline by the guest (ie, via chmem). A new option, "standby-mem={size}", is added to the QEMU command line machine parameter to specify the size of standby memory for the guest. 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. Matthew Rosato (5): Add the standby-mem machine option virtio-ccw: Include standby memory when calculating storage increment target-s390: Check for standby memory specification sclp-s390: Define new SCLP codes and structures sclp-s390: Add memory hotplug SCLPs hw/s390x/s390-virtio-ccw.c | 30 +++++- hw/s390x/sclp.c | 235 ++++++++++++++++++++++++++++++++++++++++++-- include/hw/s390x/sclp.h | 48 +++++++++ qemu-options.hx | 6 +- target-s390x/cpu.h | 4 + target-s390x/kvm.c | 16 +++ vl.c | 6 ++ 7 files changed, 332 insertions(+), 13 deletions(-) -- 1.7.9.5