Skip to content

qdev: remove all remaining cannot_destroy_with_object_finalize_yet

Laurent Vivier qemu-arm qemu-devel 2 versions – Applied

Status from this message: Applied to ppc-for-2.10 (fixing a contextual conflict on the way).

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 9 repliesApplied
  2. v11 patch 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4arm: remove remaining cannot_destroy_with_object_finalize_yethw/arm/allwinner-a10.c hw/arm/bcm2836.c hw/arm/digic.c +4 more+0 -391 reply
2/4ppc: remove cannot_destroy_with_object_finalize_yettarget/ppc/kvm.c+0 -102 replies
3/4versatile: remove cannot_destroy_with_object_finalize_yethw/pci-host/versatile.c+12 -231 reply
4/4qdev: remove cannot_destroy_with_object_finalize_yetinclude/hw/qdev-core.h qmp.c+0 -181 reply

Reviews trailers per patch

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

PatchMarkus ArmbrusterAlistair FrancisPeter MaydellDavid Gibson
SeriesA-b
1/4R-b A-b
2/4A-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [Qemu-arm] [PATCH v2 0/4] qdev: remove all remaining cannot_destroy_with_object_finalize_yet

This series removes all the remaining uses of cannot_destroy_with_object_finalize_yet to finally remove the flag itself.

The ARM patch has already been sent alone and reviewed by Markus. I have tested the ppc one on ppc64 machine with KVM and using QDM device-list-properties command.

For the versatile one, the flag allowed to workaround a problem in the bus unparent function: the bus unparent is trying to unparent all the children of the bus. To do that, it has a list of the children of the bus, and calls object_unparent() for each child, and object_unparent() calls object_property_del_child() if obj->parent is not NULL. As qdev_set_parent_bus() set only parent_bus and the list of children, parent is NULL and the child is never deleted. We can avoid the problem by moving the qdev_set_parent_bus() to the realize part.

I've tested all the changes with "make check" (including device-introspect-test). I've booted a versatilepb machine with a 3.16.0-4 debian installer kernel.

Laurent Vivier (4):
arm: remove remaining cannot_destroy_with_object_finalize_yet
ppc: remove cannot_destroy_with_object_finalize_yet
versatile: remove cannot_destroy_with_object_finalize_yet
qdev: remove cannot_destroy_with_object_finalize_yet

 hw/arm/allwinner-a10.c  |  6 ------
 hw/arm/bcm2836.c        |  6 ------
 hw/arm/digic.c          |  6 ------
 hw/arm/fsl-imx25.c      |  5 -----
 hw/arm/fsl-imx31.c      |  5 -----
 hw/arm/fsl-imx6.c       |  5 -----
 hw/arm/xlnx-zynqmp.c    |  6 ------
 hw/pci-host/versatile.c | 35 ++++++++++++-----------------------
 include/hw/qdev-core.h  | 13 -------------
 qmp.c                   |  5 -----
 target/ppc/kvm.c        | 10 ----------
 11 files changed, 12 insertions(+), 90 deletions(-)
Signature · 1 line
2.9.3