qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v4 upstream 12/21] always signal pause_cond after st


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH v4 upstream 12/21] always signal pause_cond after stopping a VCPU
Date: Sat, 12 Mar 2011 17:43:59 +0100

Signed-off-by: Paolo Bonzini <address@hidden>
---
 cpus.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/cpus.c b/cpus.c
index 785a104..6cfb45b 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);
     }
 }
 
-- 
1.7.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]