]> git.proxmox.com Git - mirror_qemu.git/commit - softmmu/vl.c
vl: introduce object_parse_property_opt
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 10:44:48 +0000 (11:44 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Dec 2019 18:32:26 +0000 (19:32 +0100)
commite5db4bd863c8fdf155b003446b98a7aec65a931c
treecdc8280bfd2b1c9b9d47fb227f2b1a5fdcffb5b4
parent03a7a1961f0ace505dc62d38be84ce3de6c9e92e
vl: introduce object_parse_property_opt

We will reuse the parsing loop of machine_set_property soon for "-accel",
but we do not want the "_" -> "-" conversion since "-accel" can just
standardize on dashes.  We will also add a bunch of legacy option handling
to keep the QOM machine object clean.  Extract the loop into a separate
function, and keep the legacy handling in machine_set_property.

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