[15/21] do not use timedwait on qemu_pause_cond

Submitted by Paolo Bonzini on Feb. 21, 2011, 8:43 a.m.

Details

Message ID 1298277820-8817-16-git-send-email-pbonzini@redhat.com
State New
Headers show

Commit Message

Paolo Bonzini Feb. 21, 2011, 8:43 a.m.
all_vcpus_paused can start returning true after penv->stopped changes
from 0 to 1.  When this is done, qemu_pause_cond is always signaled.

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

Patch hide | download patch | download mbox

diff --git a/cpus.c b/cpus.c
index 8c147bc..66fd384 100644
--- a/cpus.c
+++ b/cpus.c
@@ -938,7 +938,7 @@  void pause_all_vcpus(void)
     }
 
     while (!all_vcpus_paused()) {
-        qemu_cond_timedwait(&qemu_pause_cond, &qemu_global_mutex, 100);
+        qemu_cond_wait(&qemu_pause_cond, &qemu_global_mutex);
         penv = first_cpu;
         while (penv) {
             qemu_cpu_kick(penv);