OSDN Git Service

vl: introduce machine_merge_property
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jul 2021 13:53:27 +0000 (15:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Jul 2021 10:04:01 +0000 (12:04 +0200)
commita3c2f12830683e285e1ef32d459717dcdf9b70c6
treee816b25b0651f562c3c88e2ef0406a3c8f00e5fb
parent7742fe64e5c2c2c9f9787d107b693eaac602eaae
vl: introduce machine_merge_property

It will be used to parse smp-opts config groups from configuration
files.  The point to note is that it does not steal a reference
from the caller.  This is better because this function will be called
from qemu_config_foreach's callback; qemu_config_foreach does not cede
its reference to the qdict to the callback, and wants to free it.  To
balance that extra reference, machine_parse_property_opt now needs
a qobject_unref.

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