On Tue, Nov 10, 2020 at 05:39:08PM +0100, Paolo Bonzini wrote: > On 09/11/20 22:25, Eduardo Habkost wrote: > > Based-on: [email protected] > > Git branch: > > https://gitlab.com/ehabkost/qemu/-/commits/work/qdev-qlit-defaults > > > > This extend qlit.h to support all QNum types (signed int, > > unsigned int, and double), and use QLitObject to represent field > > property defaults. > > > > It allows us to get rid of most type-specific .set_default_value > > functions for QOM property types. > > > > Eduardo Habkost (8): > > qobject: Include API docs in docs/devel/qobject.html > > qnum: Make qnum_get_double() get const pointer > > qnum: QNumValue type for QNum value literals > > qnum: qnum_value_is_equal() function > > qlit: Support all types of QNums > > qlit: qlit_type() function > > qom: Make object_property_set_default() public > > qom: Use qlit to represent property defaults > > > > docs/devel/index.rst | 1 + > > docs/devel/qobject.rst | 11 +++ > > include/hw/qdev-properties-system.h | 2 +- > > include/qapi/qmp/qlit.h | 16 +++- > > include/qapi/qmp/qnum.h | 47 ++++++++++- > > include/qapi/qmp/qobject.h | 48 +++++++---- > > include/qom/field-property-internal.h | 4 - > > include/qom/field-property.h | 26 +++--- > > include/qom/object.h | 11 +++ > > include/qom/property-types.h | 21 ++--- > > hw/core/qdev-properties-system.c | 8 -- > > qobject/qlit.c | 4 +- > > qobject/qnum.c | 116 +++++++++++++++----------- > > qom/field-property.c | 27 ++++-- > > qom/object.c | 2 +- > > qom/property-types.c | 36 ++------ > > tests/check-qjson.c | 72 ++++++++++++++-- > > 17 files changed, 295 insertions(+), 157 deletions(-) > > create mode 100644 docs/devel/qobject.rst > > > > Acked-by: Paolo Bonzini <[email protected]>
Thanks! It looks like I broke some unit tests in this series. I will submit v2 after submitting v3 of the field property series. -- Eduardo
