From patchwork Mon Oct 31 14:13:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 80185 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp143681qge; Mon, 31 Oct 2016 07:24:13 -0700 (PDT) X-Received: by 10.129.36.4 with SMTP id k4mr26497935ywk.162.1477923853450; Mon, 31 Oct 2016 07:24:13 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id l11si9901144ybf.136.2016.10.31.07.24.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 31 Oct 2016 07:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:35949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1DVU-0001rK-Vd for patch@linaro.org; Mon, 31 Oct 2016 10:24:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1DLP-00004r-Os for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1DLL-0002oT-Kh for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:47 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1DLL-0002nv-Dy for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:43 -0400 Received: by mail-wm0-x244.google.com with SMTP id c17so18622173wmc.3 for ; Mon, 31 Oct 2016 07:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8uCVlk11ApHEauqLQGjErU3AjqBQYm3PXr9M41cInhA=; b=utjGH5Df9zphSDwI6L+IiQNhDArg6qw12GRuAbKSW9e/LBmgExpGJa+oK5qjwsm0g0 eiIHvVCG+8B9jo7U11epdnnCDDXncpOMUcAEbiGxmjnrphhV/jHdU8l4IEyz/1qHI+7r IcrCa+AgItbZJ1zOkFuJpJtkGqTrn+9F8LDayPc2sz8Fr09+MN3UmRKLJugP7YQKaj51 mcMKd3Jr8ErVG2fs2GkUD1pcB5K8pCbLhgoQb36gu2fDBnBMmpcpgTT1LDHbrVea+bwS rHq2qx87DaFOvUv6JEyUg/WLxbUePJQT/unWGVNqvQy/yaB7N6VBplgta2VAtMvKPxN5 oAaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=8uCVlk11ApHEauqLQGjErU3AjqBQYm3PXr9M41cInhA=; b=ZX5jaUv14PAitYfs9pUOtiE6Db1jjaY1iOh87a1yMWdAN9X9VCDuc2RKCQGNc2Qa5l uV6Bk4M3zcxJEgx2T4BZTHbXJApVz+aAGyeyVL7pPq+bHN6UHdcBFdxT8kx9CISSkz6+ +A990CEjseJ34ZHrfqd3nUDiwNrJDjcJRT0vV8L7ot/1XlFuyzAr55ztiUiZIsdi6/L3 CbCjou+SqDxG/P6Xn5zcbIsk4bAvZk1d7wz0/OS+eveY7Ii0jf1qQm1vunIpFFN+kskg /h9gKrxsPC3nhfifnSv2ENfqNtFrD+tJ7PJdZJa8zwvEulXheUloEiTiLqFuMQkG5ESc MjMA== X-Gm-Message-State: ABUngvcQDVkjSkiYJ9dsw3Jka5ujyMYgh0nZ7JTi/y/twnGXXQNlJSIKy3QDWrxCp91log== X-Received: by 10.194.137.15 with SMTP id qe15mr13740047wjb.16.1477923222262; Mon, 31 Oct 2016 07:13:42 -0700 (PDT) Received: from donizetti.lan (dynamic-adsl-78-12-246-178.clienti.tiscali.it. [78.12.246.178]) by smtp.gmail.com with ESMTPSA id p13sm25052133wmd.20.2016.10.31.07.13.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Oct 2016 07:13:41 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 31 Oct 2016 15:13:22 +0100 Message-Id: <1477923215-30323-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477923215-30323-1-git-send-email-pbonzini@redhat.com> References: <1477923215-30323-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PULL 01/14] cpus: make all_vcpus_paused() return bool X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée Signed-off-by: Alex Bennée Reviewed-by: Sergey Fedorov Reviewed-by: Richard Henderson Message-Id: <20161027151030.20863-2-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini --- cpus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/cpus.c b/cpus.c index cfd5cdc..5324ba3 100644 --- a/cpus.c +++ b/cpus.c @@ -1207,17 +1207,17 @@ void qemu_mutex_unlock_iothread(void) qemu_mutex_unlock(&qemu_global_mutex); } -static int all_vcpus_paused(void) +static bool all_vcpus_paused(void) { CPUState *cpu; CPU_FOREACH(cpu) { if (!cpu->stopped) { - return 0; + return false; } } - return 1; + return true; } void pause_all_vcpus(void)