From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOXUC-0003yT-Qa for qemu-devel@nongnu.org; Fri, 14 Mar 2014 15:09:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOXU6-0005Xm-RR for qemu-devel@nongnu.org; Fri, 14 Mar 2014 15:09:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOXU6-0005Xh-Ja for qemu-devel@nongnu.org; Fri, 14 Mar 2014 15:09:34 -0400 Message-ID: <532353EB.7030804@redhat.com> Date: Fri, 14 Mar 2014 20:09:31 +0100 From: Laszlo Ersek MIME-Version: 1.0 References: <1394823137-4369-1-git-send-email-ehabkost@redhat.com> <1394823137-4369-7-git-send-email-ehabkost@redhat.com> In-Reply-To: <1394823137-4369-7-git-send-email-ehabkost@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 6/7] vl.c: Rename MAX_CPUMASK_BITS to MAX_CPUS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost , qemu-devel@nongnu.org Cc: Igor Mammedov , =?ISO-8859-1?Q?Andreas_F=E4rber?= , "Michael S. Tsirkin" one important nit :) On 03/14/14 19:52, Eduardo Habkost wrote: > Also, document what the macro is really useful for. > > Signed-off-by: Eduardo Habkost > --- > include/sysemu/sysemu.h | 9 ++++++++- > vl.c | 10 +++++----- > 2 files changed, 13 insertions(+), 6 deletions(-) > > diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h > index b90df9a..a73b226 100644 > --- a/include/sysemu/sysemu.h > +++ b/include/sysemu/sysemu.h > @@ -133,7 +133,14 @@ extern uint8_t qemu_extra_params_fw[2]; > extern QEMUClockType rtc_clock; > > #define MAX_NODES 64 > -#define MAX_CPUMASK_BITS 255 > + > +/* The following should be true for all CPUs: Not should, "shall". It's an invariant we enforce, not something we merely suggest. You can add my R-b to the v4 posting. Thanks, Laszlo