mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Set default max_cpus to one.
Clean-up machine definitions. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5566 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
d4354694e9
commit
3d878caab9
26 changed files with 13 additions and 38 deletions
1
vl.c
1
vl.c
|
@ -9407,6 +9407,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
machine->max_cpus = machine->max_cpus ?: 1; /* Default to UP */
|
||||
if (smp_cpus > machine->max_cpus) {
|
||||
fprintf(stderr, "Number of SMP cpus requested (%d), exceeds max cpus "
|
||||
"supported by machine `%s' (%d)\n", smp_cpus, machine->name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue