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>
This commit is contained in:
parent
d2995916ea
commit
af67ee9264
2
vl.c
2
vl.c
|
@ -1413,7 +1413,7 @@ static void smp_parse(QemuOpts *opts)
|
||||||
max_cpus = smp_cpus;
|
max_cpus = smp_cpus;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (max_cpus > 255) {
|
if (max_cpus > MAX_CPUMASK_BITS) {
|
||||||
fprintf(stderr, "Unsupported number of maxcpus\n");
|
fprintf(stderr, "Unsupported number of maxcpus\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue