qom: introduce object_register_sugar_prop
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 12:33:44 +0000 (13:33 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Dec 2019 18:32:26 +0000 (19:32 +0100)
commit1fff3c206f320104e929b22e6b9e82fc6e4c2ae6
tree9f335318a02337239dab92056c2b1f8b4a83e361
parent8b90f1c5aca6cfabe97a567150560d06485182fa
qom: introduce object_register_sugar_prop

Similar to the existing "-rtc driftfix" option, we will convert some
legacy "-machine" command line options to global properties on accelerators.
Because accelerators are not devices, we cannot use qdev_prop_register_global.
Instead, provide a slot in the generic object_compat_props arrays for
command line syntactic sugar.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qom/object.h
qom/object.c
vl.c