vl: stop recording -smp in QemuOpts
commite4383ca240d804bf1c472ed004d6c7b8a505fc63
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jul 2021 14:03:43 +0000 (29 16:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Jul 2021 10:04:01 +0000 (30 12:04 +0200)
tree94690ed0359fb3ece6de6cac4fc4463f02d9947b
parenta3c2f12830683e285e1ef32d459717dcdf9b70c6
vl: stop recording -smp in QemuOpts

-readconfig is still recording SMP options in QemuOpts instead of
using machine_opts_dict.  This means that SMP options from -readconfig
are ignored.

Just stop using QemuOpts for -smp, making it return false for
is_qemuopts_group.  Configuration files will merge the values in
machine_opts_dict using the new function machine_merge_property.

At the same time, fix -mem-prealloc which looked at QemuOpts to find the
number of guest CPUs, which it used as the default number of preallocation
threads.

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