Skip to content

qom: more efficient object property handling

Daniel P. Berrange qemu-devel 2 versions – Applied

Status from this message: I have queued things up to 6/7 on qom-next:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 33 repliesApplied
  2. v35 patches 14 repliesSuperseded

Changes in v4 from the cover letter

- Create ObjectPropertyIterator struct to allow inline iteration, instead of using callback functions
- Convert spapr and net filter code to new iterators too
- Extend check-qom-proplist.c test to cover new iterators and class property usage

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/7qom: introduce ObjectPropertyIterator struct for iterationinclude/qom/object.h qom/object.c tests/check-qom-proplist.c+127 -04 replies
2/7qmp: convert QMP code to use object property iteratorsqmp.c+8 -22 replies
3/7vl: convert machine help code to use object property iteratorsvl.c+4 -11 reply
4/7ppc: convert spapr code to use object property iteratorshw/ppc/spapr_drc.c+4 -11 reply
5/7net: convert net filter code to use object property iteratorsnet/filter.c+4 -11 reply
6/7qom: replace object property list with GHashTableinclude/qom/object.h qom/object.c+64 -4417 replies
7/7qom: allow properties to be registered against classesinclude/qom/object.h qom/object.c tests/check-qom-proplist.c+293 -254 replies

Reviews trailers per patch

4 of 7 patches have a Reviewed-by or Acked-by.

PatchPavel FedinAndreas Färber
SeriesT-b
1/7
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7
7/7

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

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/7] qom: more efficient object property handling

This patch series is a followup to

v3: https://lists.gnu.org/archive/html/qemu-devel/2015-10/msg02024.html
v2: https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg05953.html

     +
     https://lists.gnu.org/archive/html/qemu-devel/2015-10/msg01455.html

This series introduces a concept of object property iterators to QOM so callers are insulated from the specific data structures used for storing properties against objects/classes. It then converts Object to use a GHashTable for storing properties. Finally it introduces ObjectClass properties.

Probably the only controversial thing is the item Pavel points out about object_child_foreach iterators now being forbidden from modifying the object composition tree.

Changed in v4:

- Create ObjectPropertyIterator struct to allow inline iteration, instead of using callback functions
- Convert spapr and net filter code to new iterators too
- Extend check-qom-proplist.c test to cover new iterators and class property usage

Daniel P. Berrange (6):
qom: introduce ObjectPropertyIterator struct for iteration
qmp: convert QMP code to use object property iterators
vl: convert machine help code to use object property iterators
ppc: convert spapr code to use object property iterators
net: convert net filter code to use object property iterators
qom: allow properties to be registered against classes

Pavel Fedin (1):
qom: replace object property list with GHashTable

 hw/ppc/spapr_drc.c         |   5 +-
 include/qom/object.h       | 110 ++++++++++++++-
 net/filter.c               |   5 +-
 qmp.c                      |  10 +-
 qom/object.c               | 328 ++++++++++++++++++++++++++++++++++++++++-----
 tests/check-qom-proplist.c |  77 +++++++++--
 vl.c                       |   5 +-
 7 files changed, 485 insertions(+), 55 deletions(-)
Signature · 1 line
2.4.3