From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52967 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q50s0-00022P-Iu for qemu-devel@nongnu.org; Wed, 30 Mar 2011 15:16:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q50qn-00087O-RV for qemu-devel@nongnu.org; Wed, 30 Mar 2011 15:14:42 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:48478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q50qn-00087H-NL for qemu-devel@nongnu.org; Wed, 30 Mar 2011 15:14:41 -0400 Received: by wyb42 with SMTP id 42so1523865wyb.4 for ; Wed, 30 Mar 2011 12:14:40 -0700 (PDT) From: Sasha Levin Content-Type: text/plain; charset="us-ascii" Date: Wed, 30 Mar 2011 21:14:35 +0200 Message-ID: <1301512475.2976.3.camel@sasha> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Don't limit node count by smp count List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs. Signed-off-by: Sasha Levin --- vl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 8bcf2ae..8cc1aa8 100644 --- a/vl.c +++ b/vl.c @@ -3002,8 +3002,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