Skip to content

RFC qom/qdev: Try to clarify ownership rules

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qom: Document reference count ownership rulesinclude/qom/object.h+42 -312 replies
2/3qdev: Document ownership rules of qbus_create*()hw/core/bus.c include/hw/qdev-core.h+29 -01 reply
3/3pci: Document ownership rules of pci_root_bus_new*()include/hw/pci/pci.h+15 -01 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchMarcel Apfelbaum
1/3
2/3R-b
3/3R-b

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

Read the v1 thread

Cover letter [Qemu-devel] [RFC 0/3] qom/qdev: Try to clarify ownership rules

The ownership rules of some QOM and qdev functions are not very clear. Some of the rules are not trivial because they depend on other arguments or flags specified when a property was created.

This is an attempt to clarify the existing ownership rules of those functions to avoid confusion in the future.

Eduardo Habkost (3):
qom: Document reference count ownership rules
qdev: Document ownership rules of qbus_create*()
pci: Document ownership rules of pci_root_bus_new*()

 include/hw/pci/pci.h   | 15 +++++++++
 include/hw/qdev-core.h | 24 ++++++++++++++
 include/qom/object.h   | 73 ++++++++++++++++++++++++------------------
 hw/core/bus.c          |  5 +++
 4 files changed, 86 insertions(+), 31 deletions(-)
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140