Skip to content

Fix dangling pointers from memory_region_init_*

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3memory: allow destroying a non-empty MemoryRegionmemory.c+16 -10 replies
2/3hw: do not pass NULL to memory_region_init from instance_inithw/arm/pxa2xx.c hw/display/cg3.c hw/display/tcx.c +3 more+9 -911 replies
3/3macio: move DBDMA_init from instance_init to realizehw/misc/macio/macio.c+4 -41 reply

Reviews trailers per patch

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

PatchPeter MaydellThomas HuthMarkus ArmbrusterMark Cave-Ayland
1/3
2/3R-b T-b A-b
3/3R-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 v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] Fix dangling pointers from memory_region_init_*

Some devices do not support a simple object_new/object_unref sequence because they leave dangling pointers under /machine. This series fixes this, for the case where the dangling pointers come from the memory API.

Patch 1 avoids an assertion failure. Patches 2 and 3 fix the devices that Markus reported.

Paolo

Paolo Bonzini (3):
memory: allow destroying a non-empty MemoryRegion
hw: do not pass NULL to memory_region_init from instance_init
macio: move DBDMA_init from instance_init to realize

 hw/arm/pxa2xx.c                |  2 +-
 hw/display/cg3.c               |  4 ++--
 hw/display/tcx.c               |  2 +-
 hw/misc/arm_integrator_debug.c |  2 +-
 hw/misc/macio/cuda.c           |  2 +-
 hw/misc/macio/macio.c          | 14 +++++++-------
 memory.c                       | 17 ++++++++++++++++-
 7 files changed, 29 insertions(+), 14 deletions(-)
Signature · 1 line
2.5.0