]> git.proxmox.com Git - qemu.git/commitdiff
vl.c: Don't limit node count by smp count
authorSasha Levin <levinsasha928@gmail.com>
Thu, 30 Jun 2011 03:29:39 +0000 (23:29 -0400)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 16:19:02 +0000 (11:19 -0500)
[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 <mdroth@linux.vnet.ibm.com>
Acked-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c

diff --git a/vl.c b/vl.c
index acfff858a19d63a06c713049c70a40bdd05b70e8..65438b338264d98408b977a619b6ca742e0dfa93 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3129,8 +3129,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