summaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-03-12 17:43:58 +0100
committerBlue Swirl <blauwirbel@gmail.com>2011-03-13 14:44:21 +0000
commitdf646dfd56332a5313feac75d6d168e4c78cf404 (patch)
tree4d34e050b61067f2e71569d3443a002a2ee9843a /cpus.c
parent94ad5b00a31113ed36b9d03a8db16de5535e90c4 (diff)
downloadqemu-df646dfd56332a5313feac75d6d168e4c78cf404.tar.gz
qemu-df646dfd56332a5313feac75d6d168e4c78cf404.tar.bz2
qemu-df646dfd56332a5313feac75d6d168e4c78cf404.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpus.c b/cpus.c
index c5743c4bd3..785a104b60 100644
--- a/cpus.c
+++ b/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;
}
}