From: Paolo Bonzini Subject: [PATCH v3 uq/master 12/22] exit round-robin vcpu loop if cpu->stopped is true Date: Mon, 28 Feb 2011 10:10:14 +0100 Message-ID: <1298884224-19734-13-git-send-email-pbonzini@redhat.com> References: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> Cc: kvm@vger.kernel.org, aurelien@aurel32.net, blauwirbel@gmail.com, jan.kiszka@siemes.com, mtosatti@redhat.com To: qemu-devel@nongnu.org Return-path: Received: from mail-yi0-f46.google.com ([209.85.218.46]:54293 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753039Ab1B1JLH (ORCPT ); Mon, 28 Feb 2011 04:11:07 -0500 Received: by yia27 with SMTP id 27so564167yia.19 for ; Mon, 28 Feb 2011 01:11:07 -0800 (PST) In-Reply-To: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 c5743c4..785a104 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; } } -- 1.7.4