vl: extract various command line desugaring snippets to a new function
commit4d2c17b0ef760881485a3d31f941117d9fc71bd8
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 14:21:22 +0000 (21 10:21 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Dec 2020 17:15:12 +0000 (10 12:15 -0500)
tree96456dcd55e2e443a3cbc4e05ccf918abc7ba5ad
parent90285ec8bb1c47d4ef8349a765ba7c9a672212c8
vl: extract various command line desugaring snippets to a new function

Keep the machine initialization sequence free of miscellaneous command
line parsing actions.

The only difference is that preallocation will always be done with one
thread if -smp is not provided; previously it was using mc->default_cpus,
which is almost always 1 anyway.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
softmmu/vl.c