qemu-e2k/target-s390x
Christian Borntraeger 93116ac0cf s390: fix cpu hotplug / cpu activity on interrupts
The add_del/running_cpu code and env->halted are tracking stopped cpus.
Sleeping cpus (idle and enabled for interrupts) are waiting inside the
kernel.
No interrupt besides the restart can move a cpu from stopped to
operational. This is already handled over there. So lets just remove
the bogus wakup from the common interrupt delivery, otherwise any
interrupt will wake up a cpu, even if this cpu is stopped (Thus leading
to strange hangs on sigp restart)

This fixes
echo 0 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu0/online
in the guest

Signed-off-by: Christian Borntraeger<borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2012-01-04 02:48:14 +01:00
..
cpu.h Fix spelling in comments, documentation and messages 2011-12-14 11:09:44 +00:00
helper.c s390x: Add shutdown for TCG s390-virtio machine 2011-11-14 17:47:26 +01:00
helpers.h s390x: add ldeb instruction 2011-11-14 17:47:26 +01:00
kvm.c s390: fix cpu hotplug / cpu activity on interrupts 2012-01-04 02:48:14 +01:00
machine.c Add support for S390x system emulation 2009-12-05 17:36:05 +01:00
op_helper.c s390x: add TR function for EXECUTE 2012-01-04 02:48:14 +01:00
translate.c s390x: add ldeb instruction 2011-11-14 17:47:26 +01:00