qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] Fix dangling pointers from memory_region_init_*
@ 2015-09-29 12:37 Paolo Bonzini
  2015-09-29 12:37 ` [Qemu-devel] [PATCH 1/3] memory: allow destroying a non-empty MemoryRegion Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Paolo Bonzini @ 2015-09-29 12:37 UTC (permalink / raw)
  To: qemu-devel
  Cc: peter.maydell, mark.cave-ayland, agraf, armbru, blauwirbel,
	qemu-ppc

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(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-10-01 10:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 12:37 [Qemu-devel] [PATCH 0/3] Fix dangling pointers from memory_region_init_* Paolo Bonzini
2015-09-29 12:37 ` [Qemu-devel] [PATCH 1/3] memory: allow destroying a non-empty MemoryRegion Paolo Bonzini
2015-09-29 12:37 ` [Qemu-devel] [PATCH 2/3] hw: do not pass NULL to memory_region_init from instance_init Paolo Bonzini
2015-09-29 12:42   ` Peter Maydell
2015-09-30  8:30   ` Thomas Huth
2015-09-30 13:04     ` Paolo Bonzini
2015-10-01  7:39       ` Markus Armbruster
2015-10-01  8:26         ` Markus Armbruster
2015-10-01  9:27           ` Peter Maydell
2015-09-30  8:57   ` Markus Armbruster
2015-09-30 13:03     ` Paolo Bonzini
2015-10-01  7:39       ` Markus Armbruster
2015-10-01 10:13         ` Paolo Bonzini
2015-10-01  9:38   ` Mark Cave-Ayland
2015-09-29 12:37 ` [Qemu-devel] [PATCH 3/3] macio: move DBDMA_init from instance_init to realize Paolo Bonzini
2015-09-30  8:33   ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).