diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-03-12 17:44:02 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-03-13 14:44:22 +0000 |
commit | be7d6c57c4598ca9fcb3f6fbe57c13110ebd6c70 (patch) | |
tree | b227fabe231b5b83c9cce2aa01c5a2970d7cfa8e /cpus.c | |
parent | e009894f088507e245ae6c62aa0761b2afdf1c6b (diff) | |
download | qemu-be7d6c57c4598ca9fcb3f6fbe57c13110ebd6c70.zip qemu-be7d6c57c4598ca9fcb3f6fbe57c13110ebd6c70.tar.gz qemu-be7d6c57c4598ca9fcb3f6fbe57c13110ebd6c70.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |