From patchwork Mon Feb 21 08:43:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [11/21] exit round-robin vcpu loop if cpu->stopped is true From: Paolo Bonzini X-Patchwork-Id: 83794 Message-Id: <1298277820-8817-12-git-send-email-pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Mon, 21 Feb 2011 09:43:30 +0100 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 --- cpus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpus.c b/cpus.c index 7a9440f..912e0d8 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; } }