diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-03-12 17:43:58 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-03-13 14:44:21 +0000 |
commit | df646dfd56332a5313feac75d6d168e4c78cf404 (patch) | |
tree | 4d34e050b61067f2e71569d3443a002a2ee9843a /cpus.c | |
parent | 94ad5b00a31113ed36b9d03a8db16de5535e90c4 (diff) |
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>
Diffstat (limited to 'cpus.c')
-rw-r--r-- | cpus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } } |