From 67bb172f9d995880a9c752e9f33819f4a63a3fda Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sat, 12 Mar 2011 17:43:59 +0100 Subject: [PATCH] always signal pause_cond after stopping a VCPU Signed-off-by: Paolo Bonzini Signed-off-by: Blue Swirl --- cpus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpus.c b/cpus.c index 785a104b60..6cfb45b01d 100644 --- a/cpus.c +++ b/cpus.c @@ -1012,8 +1012,10 @@ void qemu_notify_event(void) void cpu_stop_current(void) { if (cpu_single_env) { + cpu_single_env->stop = 0; cpu_single_env->stopped = 1; cpu_exit(cpu_single_env); + qemu_cond_signal(&qemu_pause_cond); } } -- 2.11.4.GIT