Message ID | 20161027151030.20863-2-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.80.142.83 with SMTP id 19csp702461edx; Thu, 27 Oct 2016 08:18:11 -0700 (PDT) X-Received: by 10.37.173.133 with SMTP id z5mr7600606ybi.64.1477581491155; Thu, 27 Oct 2016 08:18:11 -0700 (PDT) Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x39si2868244ybi.252.2016.10.27.08.18.10 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 27 Oct 2016 08:18:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1bzmRW-0001GR-DM for patch@linaro.org; Thu, 27 Oct 2016 11:18:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1bzmKh-0004a6-LM for qemu-devel@nongnu.org; Thu, 27 Oct 2016 11:11:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1bzmKc-0007ao-O8 for qemu-devel@nongnu.org; Thu, 27 Oct 2016 11:11:07 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:38443) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1bzmKc-0007Zv-H7 for qemu-devel@nongnu.org; Thu, 27 Oct 2016 11:11:02 -0400 Received: by mail-wm0-x232.google.com with SMTP id n67so50388666wme.1 for <qemu-devel@nongnu.org>; Thu, 27 Oct 2016 08:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z/W90iVbfht3X9vaVyyqu3ZjomOd+04pHmt2KDFluWw=; b=aqIlZOgfnwZpzsD6XqfA5UrKmGo0AKhsKnB+5kMwhmn3dZWQ/OA1hvfoSkq7mznMDv K5SHrJiHua7E2nrCNwEL1HZHSWknHi7PrnVmk5Eyjah8Uo6cLw/I+eC8ycWRmRtOKHFr 2+3UCVs6Pj917DLybFLoz00zVTcCHkb2tE6FY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z/W90iVbfht3X9vaVyyqu3ZjomOd+04pHmt2KDFluWw=; b=bsV2ytwF/M7Qn5WLRV6ncCkcEaGAI91FYxNeIlLQFtCBMQpPaJ/hoUK107/f+eosoi H6lj2EmqLEwU4V+RPIxcXSAZNtSfOZxkgmE7mMn8Gv4xloKLzeobSEnde8oe1AKx6dEF R4aJpi+Fe8P1efl3ITsfEGRAKTSK1cACPjaV13yKWCZG3ItSJGsBn2HK4OFgIrLJrddF uI/laxGpdFbbM1xnuSQ88Y/bwGHHCHyLvdORARvQ/eV1/ol8i47C4w5ZOWH8jC6TeRbk Wmx+YDQhFfsN0XiWYb8E0tias6xlH3MHlzmqLvU1mO2Sf65lWV7ZCO4h/vUpZOkSp+8P H/cw== X-Gm-Message-State: ABUngvdqF5P8kYhZJrkE6oJ+L7EylqY7d7MBZUpFJic6nPGK+nx207pLqIdXejubdy1Q32XK X-Received: by 10.28.43.199 with SMTP id r190mr13440026wmr.58.1477581060661; Thu, 27 Oct 2016 08:11:00 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id pe5sm9003544wjb.15.2016.10.27.08.10.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Oct 2016 08:10:59 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2966C3E0198; Thu, 27 Oct 2016 16:10:59 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee@linaro.org> To: pbonzini@redhat.com Date: Thu, 27 Oct 2016 16:09:58 +0100 Message-Id: <20161027151030.20863-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161027151030.20863-1-alex.bennee@linaro.org> References: <20161027151030.20863-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::232 Subject: [Qemu-devel] [PATCH v5 01/33] cpus: make all_vcpus_paused() return bool X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: mttcg@listserver.greensocs.com, peter.maydell@linaro.org, claudio.fontana@huawei.com, nikunj@linux.vnet.ibm.com, Peter Crosthwaite <crosthwaite.peter@gmail.com>, jan.kiszka@siemens.com, mark.burton@greensocs.com, a.rigo@virtualopensystems.com, qemu-devel@nongnu.org, cota@braap.org, serge.fdrv@gmail.com, bobby.prani@gmail.com, rth@twiddle.net, =?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee@linaro.org>, fred.konrad@greensocs.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
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)