mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
always signal pause_cond after stopping a VCPU
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
df646dfd56
commit
67bb172f9d
1 changed files with 2 additions and 0 deletions
2
cpus.c
2
cpus.c
|
@ -1012,8 +1012,10 @@ void qemu_notify_event(void)
|
||||||
void cpu_stop_current(void)
|
void cpu_stop_current(void)
|
||||||
{
|
{
|
||||||
if (cpu_single_env) {
|
if (cpu_single_env) {
|
||||||
|
cpu_single_env->stop = 0;
|
||||||
cpu_single_env->stopped = 1;
|
cpu_single_env->stopped = 1;
|
||||||
cpu_exit(cpu_single_env);
|
cpu_exit(cpu_single_env);
|
||||||
|
qemu_cond_signal(&qemu_pause_cond);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue