mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 03:00:14 +00:00
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>
This commit is contained in:
parent
e009894f08
commit
be7d6c57c4
2
cpus.c
2
cpus.c
@ -938,7 +938,7 @@ void pause_all_vcpus(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (!all_vcpus_paused()) {
|
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;
|
penv = first_cpu;
|
||||||
while (penv) {
|
while (penv) {
|
||||||
qemu_cpu_kick(penv);
|
qemu_cpu_kick(penv);
|
||||||
|
Loading…
Reference in New Issue
Block a user