aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2014-03-18 16:29:24 -0300
committerMichael S. Tsirkin <mst@redhat.com>2014-03-19 13:24:29 +0200
commitaf67ee9264c135f4b213b4bc1a3871c4e9ec7da3 (patch)
tree791568596d5e8df4a4ed05f6a6f377a78ab4d5a8
parentd2995916ea262bca40788f275c7f53f1c0a0b606 (diff)
vl.c: Use MAX_CPUMASK_BITS macro instead of hardcoded constant
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index c8a5bfa959..23e1dbd245 100644
--- a/vl.c
+++ b/vl.c
@@ -1413,7 +1413,7 @@ static void smp_parse(QemuOpts *opts)
max_cpus = smp_cpus;
}
- if (max_cpus > 255) {
+ if (max_cpus > MAX_CPUMASK_BITS) {
fprintf(stderr, "Unsupported number of maxcpus\n");
exit(1);
}