Received: from eggs.gnu.org ([2001:4830:134:3::10]:36041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAIZU-0007fw-RS for qemu-devel@nongnu.org; Tue, 07 Jun 2016 11:05:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAIZP-0001su-NI for qemu-devel@nongnu.org; Tue, 07 Jun 2016 11:05:35 -0400 Received: from mail-qg0-x243.google.com ([2607:f8b0:400d:c04::243]:35940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAIZP-0001sg-F6 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 11:05:31 -0400 Received: by mail-qg0-x243.google.com with SMTP id k43so8048050qgk.3 for ; Tue, 07 Jun 2016 08:05:31 -0700 (PDT) Sender: Richard Henderson References: <1464986428-6739-1-git-send-email-alex.bennee@linaro.org> <1464986428-6739-2-git-send-email-alex.bennee@linaro.org> From: Richard Henderson Message-ID: Date: Tue, 7 Jun 2016 08:05:26 -0700 MIME-Version: 1.0 In-Reply-To: <1464986428-6739-2-git-send-email-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC v3 01/19] cpus: make all_vcpus_paused() return bool List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , mttcg@greensocs.com, qemu-devel@nongnu.org, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, serge.fdrv@gmail.com, cota@braap.org, bobby.prani@gmail.com Cc: mark.burton@greensocs.com, pbonzini@redhat.com, jan.kiszka@siemens.com, peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite On 06/03/2016 01:40 PM, Alex Bennée wrote: > Signed-off-by: Alex Bennée > Reviewed-by: Sergey Fedorov > > --- > v3 > - add r-b tags > --- > cpus.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/cpus.c b/cpus.c > index 665f9bb..c404dd7 100644 > --- a/cpus.c > +++ b/cpus.c > @@ -1258,17 +1258,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) > Reviewed-by: Richard Henderson r~