From patchwork Tue Mar 29 00:56:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 670452 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2T0v1MH004937 for ; Tue, 29 Mar 2011 00:57:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752409Ab1C2A46 (ORCPT ); Mon, 28 Mar 2011 20:56:58 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=YkxmshGGres2x6MGQ12MnaM3z7KlspYazT1O+Zj/xys=; b=DdN5rf0QkjFGLYecmFqnwUi4uFGYuVvqZyRyiZvFOx15+OXEXzwKN3DGtWZDoIkFVH urQkfbyvUlzoqq8G8c+vp0q6c+9Qy+Egi6fj8SZfUZQYAELIGc2g32FBPXNMxOihxRR6 p8bOFAodk4MG1Pswq4gcop2UPcL0DGTBLX6Yo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=sPOLyLsJnpkyV0stPeTY01xf31JnV87h7O8CQO7mzZNWz6QPe56Uw13jRI5YIfBba1 SWaRlE5m8PZsr2VzQVtJopu1buMfxP7CG3fhhbFDgOU2tfnm3XQJDLlPVXUHIA2+jiVn 2iw84R6OFexRm2tP970ut2OTmhva1I0L7HfQY= Received: by 10.204.76.73 with SMTP id b9mr4118897bkk.211.1301360216689; Mon, 28 Mar 2011 17:56:56 -0700 (PDT) Received: from [192.168.50.4] ([94.230.81.33]) by mx.google.com with ESMTPS id 16sm3060214bkm.18.2011.03.28.17.56.55 (version=SSLv3 cipher=OTHER); Mon, 28 Mar 2011 17:56:56 -0700 (PDT) Subject: [PATCH] numa: Don't limit node count by smp count From: Sasha Levin To: kvm@vger.kernel.org Date: Tue, 29 Mar 2011 02:56:53 +0200 Message-ID: <1301360213.3390.5.camel@sasha> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 29 Mar 2011 00:57:01 +0000 (UTC) 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