summaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-03-12 17:44:02 +0100
committerBlue Swirl <blauwirbel@gmail.com>2011-03-13 14:44:22 +0000
commitbe7d6c57c4598ca9fcb3f6fbe57c13110ebd6c70 (patch)
treeb227fabe231b5b83c9cce2aa01c5a2970d7cfa8e /cpus.c
parente009894f088507e245ae6c62aa0761b2afdf1c6b (diff)
do not use timedwait on qemu_pause_cond
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> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpus.c b/cpus.c
index e367b3b780..8f169ad0fb 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);