summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorSasha Levin2011-06-30 05:29:39 +0200
committerAnthony Liguori2011-07-23 18:19:02 +0200
commitea0e541812c515e0bbdf598d3237d6f0bee3fbbf (patch)
tree7c2eb025bccbac391094510cb78bdbbedcd9874f /vl.c
parentvga: Fix type of lfb/map_addr/end. (diff)
downloadqemu-ea0e541812c515e0bbdf598d3237d6f0bee3fbbf.tar.gz
qemu-ea0e541812c515e0bbdf598d3237d6f0bee3fbbf.tar.xz
qemu-ea0e541812c515e0bbdf598d3237d6f0bee3fbbf.zip
vl.c: Don't limit node count by smp count
[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>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index acfff858a1..65438b3382 100644
--- 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