Latest code for cpu Hotplug designed to be controled via the QOM infrastructure. cpu on S390 are treated as devices via a new platform independent infrastructure I designed to allow this "new way" to exist with the "old way" of representing cpus.
The Qemu command line now allows "-device s390-cpu" which will instantiate a cpu device. This is additive to anything that might be specified on the -smp parameter. Devices can be hot plugged via the monitor command "device_add s390-cpu". 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.