Fix dangling pointers from memory_region_init_*
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | memory: allow destroying a non-empty MemoryRegionmemory.c | +16 | 0 replies | |
| 2/3 | hw: do not pass NULL to memory_region_init from instance_inithw/ hw/ hw/ +3 more | +9 | 11 replies | |
| 3/3 | macio: move DBDMA_init from instance_init to realizehw/ | +4 | 1 reply |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Peter Maydell | Thomas Huth | Markus Armbruster | Mark Cave-Ayland |
|---|---|---|---|---|
| 1/3 | ||||
| 2/3 | R-b | T-b | A-b | |
| 3/3 | R-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.
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