From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkfTt-0004a7-7G for qemu-devel@nongnu.org; Sat, 23 Jul 2011 12:55:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkfTr-0007ks-U1 for qemu-devel@nongnu.org; Sat, 23 Jul 2011 12:55:12 -0400 Received: from mail-gx0-f173.google.com ([209.85.161.173]:42605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkfTr-0007kn-Lc for qemu-devel@nongnu.org; Sat, 23 Jul 2011 12:55:11 -0400 Received: by gxk26 with SMTP id 26so2024104gxk.4 for ; Sat, 23 Jul 2011 09:55:10 -0700 (PDT) Message-ID: <4E2AFCEC.2010200@codemonkey.ws> Date: Sat, 23 Jul 2011 11:55:08 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1309404579-32115-1-git-send-email-levinsasha928@gmail.com> In-Reply-To: <1309404579-32115-1-git-send-email-levinsasha928@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH resend] vl.c: Don't limit node count by smp count List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sasha Levin Cc: qemu-devel@nongnu.org On 06/29/2011 10:29 PM, Sasha Levin wrote: > [I've sent this patch couple of months ago and noticed it > didn't make it's way in - so I'm sending it again] > > It is possible to create CPU-less NUMA nodes, node amount shouldn't be > limited by amount of CPUs. > > Tested-by: Michael Roth > Signed-off-by: Sasha Levin Applied. Thanks. Regards, Anthony Liguori > --- > vl.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/vl.c b/vl.c > index e0191e1..b95ae8d 100644 > --- a/vl.c > +++ b/vl.c > @@ -3147,8 +3147,8 @@ int main(int argc, char **argv, char **envp) > if (nb_numa_nodes> 0) { > int i; > > - if (nb_numa_nodes> smp_cpus) { > - nb_numa_nodes = smp_cpus; > + if (nb_numa_nodes> MAX_NODES) { > + nb_numa_nodes = MAX_NODES; > } > > /* If no memory size if given for any node, assume the default case