From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: [PATCH] numa: Don't limit node count by smp count Date: Tue, 29 Mar 2011 02:56:53 +0200 Message-ID: <1301360213.3390.5.camel@sasha> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:34857 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752323Ab1C2A46 (ORCPT ); Mon, 28 Mar 2011 20:56:58 -0400 Received: by bwz15 with SMTP id 15so2833775bwz.19 for ; Mon, 28 Mar 2011 17:56:56 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: 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