diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2016-01-25 10:08:18 +0000 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2016-03-17 16:47:04 -0500 |
commit | 225d50fbb1bda242ccc2dd2c01c1d429259c2bc3 (patch) | |
tree | af8bf270d9f4735ade463a5970e7d8c7faaa8c9e /tests/test-qmp-output-visitor.c | |
parent | 020282d3e640051405cfd246921413a894ce1dc1 (diff) | |
download | hqemu-225d50fbb1bda242ccc2dd2c01c1d429259c2bc3.zip hqemu-225d50fbb1bda242ccc2dd2c01c1d429259c2bc3.tar.gz |
cpus: use broadcast on qemu_pause_cond
Jiri saw a hang on pause_all_vcpus called from postcopy_start,
where the cpus are all apparently stopped ('stopped' flag set)
but pause_all_vcpus is still stuck on a cond_wait on qemu_paused_cond.
We suspect this is happening if a qmp_stop is called at about the
same time as the postcopy code calls that pause_all_vcpus;
although they both should have the main lock held, Paolo spotted
the cond_wait unlocks the global lock so perhaps they both
could end up waiting at the same time?
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reported-by: Jiri Denemark <jdenemar@redhat.com>
Message-Id: <1453716498-27238-1-git-send-email-dgilbert@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 96bce6831bd19b61e965384427741d805c7234c3)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'tests/test-qmp-output-visitor.c')
0 files changed, 0 insertions, 0 deletions