From: "Jason J. Herne" <jjhe...@us.ibm.com> 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