Skip to content
Commit 93116ac0 authored by Christian Borntraeger's avatar Christian Borntraeger Committed by Alexander Graf
Browse files

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: default avatarChristian <Borntraeger&lt;borntraeger@de.ibm.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 7d77793d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment