Re: [PATCH 08/16] qom: introduce object_register_sugar_prop

2019-11-14 Thread Paolo Bonzini
On 14/11/19 10:53, Marc-André Lureau wrote: >> include/qom/object.h | 1 + >> qom/object.c | 23 +-- >> vl.c | 10 +++--- >> 3 files changed, 25 insertions(+), 9 deletions(-) >> >> diff --git a/include/qom/object.h b/include/qom/object.h >> index

Re: [PATCH 08/16] qom: introduce object_register_sugar_prop

2019-11-14 Thread Marc-André Lureau
Hi On Wed, Nov 13, 2019 at 6:46 PM Paolo Bonzini wrote: > > 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. >

[PATCH 08/16] qom: introduce object_register_sugar_prop

2019-11-13 Thread Paolo Bonzini
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