Do not unparent in instance_finalize()
Get series with b4
b4 am [email protected] change-id 20250906-use-37ecc903a9e0Versions newest first
- v4 Latest7 patches 2 repliesIn review
- v37 patches 22 repliesApplied
- v215 patches 0 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 22 patches | 20 replies | Superseded |
Changes in v4 from the cover letter
- Removed Based-on:.
- Restored the examples of VFIOMSIXInfo and VFIOQuirk in
docs/devel/memory.rst.
- Ensured that the timing to call object_unparent() and free memory
regions is mentioned once for each.
- Link to v3: https://lore.kernel.org/qemu-devel/[email protected]
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | docs/devel: Do not unparent in instance_finalize()docs/ | +6 | 0 replies | |
| 2/7 | vfio/pci: Do not unparent in instance_finalize()hw/ | +0 | 1 reply | |
| 3/7 | hw/core/register: Do not unparent in instance_finalize()hw/ | +0 | 0 replies | |
| 4/7 | hv-balloon: hw/core/register: Do not unparent in instance_finalize()hw/ | +1 | 0 replies | |
| 5/7 | hw/sd/sdhci: Do not unparent in instance_finalize()hw/ | +0 | 0 replies | |
| 6/7 | vfio: Do not unparent in instance_finalize()hw/ hw/ | +1 | 1 reply | |
| 7/7 | hw/xen: Do not unparent in instance_finalize()hw/ | +1 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Daniel P. Berrangé | Cédric Le Goater |
|---|---|---|
| 1/7 | R-b | |
| 2/7 | R-b | R-b |
| 3/7 | R-b | |
| 4/7 | R-b | |
| 5/7 | R-b | |
| 6/7 | R-b | |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/7] Do not unparent in instance_finalize()
Supersedes: <[email protected]> ("[PATCH] docs/devel: Prohibit calling object_unparent() for memory region")
Children are automatically unparented so manually unparenting is unnecessary.
Worse, automatic unparenting happens before the instance_finalize() callback of the parent gets called, so object_unparent() calls in the callback will refer to objects that are already unparented, which is semantically incorrect.
---
Changes in v4:
- Removed Based-on:.
- Restored the examples of VFIOMSIXInfo and VFIOQuirk in
docs/devel/memory.rst.
- Ensured that the timing to call object_unparent() and free memory
regions is mentioned once for each.
- Link to v3: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v3:
- Added patches to remove other object_unparent() calls in
instance_finalize().
- Dropped patch "qdev: Automatically delete memory subregions" and the
succeeding patches to avoid Ccing many.
- Link to v2: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v2:
- Added a reference to "[PATCH] docs/devel: Prohibit calling
object_unparent() for memory region", which does something similar to
patch "docs/devel: Do not unparent in instance_finalize()" but I
forgot I sent it in the past.
- Fixed a typo in patch
"docs/devel: Do not unparent in instance_finalize()" and
"[PATCH 02/22] vfio/pci: Do not unparent in instance_finalize()".
- Dropped patches to move address_space_init() calls; I intend to
QOM-ify to fix memory leaks automatically as discussed in the
following thread:
https://lore.kernel.org/qemu-devel/[email protected]/
But the QOM-ification will be big so I'll send it as a separate
series.
- Rebased on top of "[PATCH v2 00/14] hw/pci-host/raven clean ups".
https://lore.kernel.org/qemu-devel/[email protected]/
- Link to v1: https://lore.kernel.org/qemu-devel/[email protected]
---
Akihiko Odaki (7):
docs/devel: Do not unparent in instance_finalize() vfio/pci: Do not unparent in instance_finalize() hw/core/register: Do not unparent in instance_finalize()
hv-balloon: hw/core/register: Do not unparent in instance_finalize() hw/sd/sdhci: Do not unparent in instance_finalize()
vfio: Do not unparent in instance_finalize()
hw/xen: Do not unparent in instance_finalize()
docs/devel/memory.rst | 17 ++++++----------- hw/core/register.c | 1 - hw/hyperv/hv-balloon.c | 12 +----------- hw/sd/sdhci.c | 4 ---- hw/vfio/pci-quirks.c | 9 +-------- hw/vfio/pci.c | 4 ---- hw/vfio/region.c | 3 --- hw/xen/xen_pt_msi.c | 11 +---------- 8 files changed, 9 insertions(+), 52 deletions(-)
---
base-commit: ab8008b231e758e03c87c1c483c03afdd9c02e19
change-id: 20250906-use-37ecc903a9e0
Best regards,
Signature · 1 line
Akihiko Odaki <[email protected]>