From patchwork Mon Feb 28 09:10:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 594741 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1S9BMIQ007033 for ; Mon, 28 Feb 2011 09:11:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752982Ab1B1JLN (ORCPT ); Mon, 28 Feb 2011 04:11:13 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer:in-reply-to:references; bh=7gI1m5yrnOJR29p7RH1V1FnYuA9ER81EDcSXf3ojFUM=; b=Po0e/8gVa61IK5ukXGKogbVg8+KhmSwmZGo+ktUqTUE5AUx4a9XSBP1I/pKPOyXb4l br1XYs4583kKJwzy0MhXYk9JkGy6PZbl6cMh7diwI6N5DscGRkXCnzIYaiNmR2YBpShC wD2T6uP3Mb1fs4Z6pOJqMhJnfNhDqvuUF74SA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=Y5Oa84X93NoATvV67cV4CWcbi03755OYFfogG3fmOxaI6JdK2BjvM10bU1uKsEmxh5 UGJPOcopgcLZpfCpSAJNlglYE00vSwCPqjGTICNFceRo0++u60hmBpfH5YgKBw4wDq1y zKLjv5oOI3+G3cFYqclbKVDktTOH7n1IdWJG0= Received: by 10.151.63.24 with SMTP id q24mr6771497ybk.385.1298884267213; Mon, 28 Feb 2011 01:11:07 -0800 (PST) Received: from localhost.localdomain (93-34-149-100.ip50.fastwebnet.it [93.34.149.100]) by mx.google.com with ESMTPS id 1sm2037209yhl.11.2011.02.28.01.11.04 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 01:11:06 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, aurelien@aurel32.net, blauwirbel@gmail.com, jan.kiszka@siemes.com, mtosatti@redhat.com 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> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> References: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 28 Feb 2011 09:11:23 +0000 (UTC) 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; } }