qom: Tighten object lifetime handling
Get series with b4
b4 am [email protected] change-id 20260614-embedded-00ca98fcdb5cVersions newest first
- v1 Latest2 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | qom: Reject temporary object resurrectionblock/ include/ qom/ +1 more | +13 | 3 replies | |
| 2/2 | qom: Manage references to embedded child objectsinclude/ qom/ rust/ | +87 | 11 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] qom: Tighten object lifetime handling
QOM has extensive assertions and prevents most cases that would trigger undefined behavior, but two corner cases still need explicit handling:
temporary object resurrection during finalization, and references to embedded objects. This series covers both cases.
The temporary object resurrection patch originated from:
https://lore.kernel.org/qemu-devel/[email protected]/
("[PATCH v2 1/3] qom: Do not finalize twice")
I also plan to make the embedded object reference handling a prerequisite for the next version of the following series:
https://lore.kernel.org/qemu-devel/[email protected]/
("[PATCH 00/35] memory: QOM-ify AddressSpace")
---
Akihiko Odaki (2):
qom: Reject temporary object resurrection
qom: Manage references to embedded child objects
include/qom/object.h | 39 ++++++++++++++++----- block/throttle-groups.c | 2 +- qom/object.c | 75 +++++++++++++++++++++++++++++++---------- tests/unit/check-qom-proplist.c | 8 ++--- rust/qom/src/qom.rs | 8 ++--- 5 files changed, 98 insertions(+), 34 deletions(-)
---
base-commit: 2db91528542672cf0db78b3f2cc0e22b36302b38
change-id: 20260614-embedded-00ca98fcdb5c
Best regards,
Signature · 1 line
Akihiko Odaki <[email protected]>