From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apbGp-0004oj-Lc for qemu-devel@nongnu.org; Mon, 11 Apr 2016 08:48:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apbGl-0003Q3-Ji for qemu-devel@nongnu.org; Mon, 11 Apr 2016 08:48:47 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:36211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apbGl-0003Pu-BP for qemu-devel@nongnu.org; Mon, 11 Apr 2016 08:48:43 -0400 Received: by mail-lf0-x234.google.com with SMTP id g184so155192849lfb.3 for ; Mon, 11 Apr 2016 05:48:42 -0700 (PDT) References: <1459870344-16773-1-git-send-email-alex.bennee@linaro.org> <1459870344-16773-3-git-send-email-alex.bennee@linaro.org> From: Sergey Fedorov Message-ID: <570B9D28.1060405@gmail.com> Date: Mon, 11 Apr 2016 15:48:40 +0300 MIME-Version: 1.0 In-Reply-To: <1459870344-16773-3-git-send-email-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC v2 02/11] 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@listserver.greensocs.com, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org Cc: qemu-devel@nongnu.org, mark.burton@greensocs.com, pbonzini@redhat.com, jan.kiszka@siemens.com, rth@twiddle.net, peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite On 05/04/16 18:32, Alex Bennée wrote: > Signed-off-by: Alex Bennée Reviewed-by: Sergey Fedorov > --- > cpus.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/cpus.c b/cpus.c > index 8ae4777..e118fdf 100644 > --- a/cpus.c > +++ b/cpus.c > @@ -1248,17 +1248,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)