mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
exit round-robin vcpu loop if cpu->stopped is true
Sometimes vcpus are stopped directly without going through ->stop = 1. Exit the VCPU execution loop in this case as well. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
94ad5b00a3
commit
df646dfd56
1 changed files with 1 additions and 1 deletions
2
cpus.c
2
cpus.c
|
@ -1098,7 +1098,7 @@ bool cpu_exec_all(void)
|
|||
cpu_handle_debug_exception(env);
|
||||
break;
|
||||
}
|
||||
} else if (env->stop) {
|
||||
} else if (env->stop || env->stopped) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue