All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] s390: fix cpu hotplug / cpu activity on interrupts
@ 2011-11-21  9:12 Christian Borntraeger
  2011-12-19 12:48 ` Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Borntraeger @ 2011-11-21  9:12 UTC (permalink / raw)
  To: Alexander Graf; +Cc: qemu-devel@nongnu.org

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>

--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -185,9 +185,6 @@ void kvm_s390_interrupt_internal(CPUState *env, int type, uint32_t parm,
         return;
     }
 
-    s390_add_running_cpu(env);
-    qemu_cpu_kick(env);
-
     kvmint.type = type;
     kvmint.parm = parm;
     kvmint.parm64 = parm64;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] s390: fix cpu hotplug / cpu activity on interrupts
  2011-11-21  9:12 [Qemu-devel] [PATCH] s390: fix cpu hotplug / cpu activity on interrupts Christian Borntraeger
@ 2011-12-19 12:48 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2011-12-19 12:48 UTC (permalink / raw)
  To: Christian Borntraeger; +Cc: qemu-devel@nongnu.org


On 21.11.2011, at 10:12, Christian Borntraeger wrote:

> 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>

Thanks, applied to s390-next


Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-19 12:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-21  9:12 [Qemu-devel] [PATCH] s390: fix cpu hotplug / cpu activity on interrupts Christian Borntraeger
2011-12-19 12:48 ` Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.