mirror of https://gitee.com/openkylin/qemu.git
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
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…
Reference in New Issue