Skip to content

qom: Introduce object*_property_add_bool_ptr() functions

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4qom: object*_property_add_bool_ptr() functionsinclude/qom/object.h qom/object.c+54 -00 replies
2/4autz/listfile: Use object_class_property_add_bool_ptr()authz/listfile.c+3 -240 replies
3/4machine: Use object_class_property_add_bool_ptr() when possiblehw/core/machine.c+13 -650 replies
4/4pc: Use object_class_property_add_bool_ptr()hw/i386/pc.c+9 -480 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilippe Mathieu-Daudé
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] qom: Introduce object*_property_add_bool_ptr() functions

Based-on: [email protected] Git branch: https://github.com/ehabkost/qemu work/qom-bool-ptr-prop

This series introduces a helper to make it easier to register simple boolan QOM properties. It will be useful for simplifying existing property code in some types that can't use QDEV_PROP_BOOL yet (because they are not TYPE_DEVICE subtypes). As examples, some TYPE_MACHINE and TYPE_QAUTHZ_LIST_FILE properties are converted to use the new functions.

This depends on the QOM property code cleanup that was also submitted as part of:

https://lore.kernel.org/qemu-devel/[email protected]
Subject: [PATCH 00/12] qom: Make all -object types use only class properties<

Eduardo Habkost (4):
qom: object*_property_add_bool_ptr() functions autz/listfile: Use object_class_property_add_bool_ptr()
machine: Use object_class_property_add_bool_ptr() when possible
pc: Use object_class_property_add_bool_ptr()

 include/qom/object.h | 23 +++++++++++++
 authz/listfile.c     | 27 ++-------------
 hw/core/machine.c    | 78 ++++++++------------------------------------
 hw/i386/pc.c         | 57 +++++---------------------------
 qom/object.c         | 31 ++++++++++++++++++
 5 files changed, 79 insertions(+), 137 deletions(-)
Signature · 1 line
2.28.0