All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Trivial cleanup
@ 2026-03-08 20:35 Bernhard Beschow
  2026-03-08 20:35 ` [PATCH 1/5] hw/arm/fsl-imx8mp: Do not create redundant unimplemented devices Bernhard Beschow
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Bernhard Beschow @ 2026-03-08 20:35 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Paolo Bonzini, Laurent Vivier, qemu-trivial,
	qemu-arm, Michael Tokarev, Daniel P. Berrangé, Peter Maydell,
	Bernhard Beschow

This series contains some low-hanging fruit fixes I came up with when
investigating Rust for QEMU, especially QOM object lifecycle vs. the Drop trait.

I noticed that no finalize methods were called in Rust sysbus devices when QEMU
quits, and neither are its C variants. What is probably missing in the first
place is a

  object_unref(object_get_root());

at the end of qemu_cleanup() in runstate.c (see TODO there). Adding it before
this series won't clean up machines since their refcount won't reach zero. With
this series applied this additional line will cause various issues when quitting
QEMU, allowing the problem to be investigated. Fixing it is beyond the scope of
this series (and my time budget).

Testing done:
* `make check`
* Run imx8mp-evk with a Buildroot image

Bernhard Beschow (5):
  hw/arm/fsl-imx8mp: Do not create redundant unimplemented devices
  hw/arm/fsl-imx8mp: Fix parent of ocram memory region
  hw/arm/imx8mp-evk: Fix reference count of SoC object
  system/vl: Fix reference count of machine object
  Revert "sysbus: add irq_routing_notifier"

 include/hw/core/sysbus.h | 1 -
 hw/arm/fsl-imx8mp.c      | 3 ++-
 hw/arm/imx8mp-evk.c      | 4 ++--
 hw/core/sysbus.c         | 6 ------
 system/vl.c              | 1 +
 5 files changed, 5 insertions(+), 10 deletions(-)

-- 
2.53.0



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

end of thread, other threads:[~2026-05-05 20:54 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-08 20:35 [PATCH 0/5] Trivial cleanup Bernhard Beschow
2026-03-08 20:35 ` [PATCH 1/5] hw/arm/fsl-imx8mp: Do not create redundant unimplemented devices Bernhard Beschow
2026-04-28  9:46   ` Peter Maydell
2026-03-08 20:35 ` [PATCH 2/5] hw/arm/fsl-imx8mp: Fix parent of ocram memory region Bernhard Beschow
2026-03-10  9:54   ` Markus Armbruster
2026-03-10 10:00   ` Peter Maydell
2026-04-27 10:29     ` Bernhard Beschow
2026-04-27 12:13       ` Peter Maydell
2026-03-08 20:35 ` [PATCH 3/5] hw/arm/imx8mp-evk: Fix reference count of SoC object Bernhard Beschow
2026-04-28  9:51   ` Peter Maydell
2026-04-30 15:39   ` Peter Maydell
2026-05-05 20:53     ` Bernhard Beschow
2026-03-08 20:35 ` [PATCH 4/5] system/vl: Fix reference count of machine object Bernhard Beschow
2026-03-08 20:35 ` [PATCH 5/5] Revert "sysbus: add irq_routing_notifier" Bernhard Beschow
2026-03-09  9:19   ` Cédric Le Goater
2026-04-27 10:30     ` Bernhard Beschow
2026-05-04  9:51       ` Cédric Le Goater
2026-05-05 18:17         ` Bernhard Beschow
2026-03-08 21:27 ` [PATCH 0/5] Trivial cleanup Bernhard Beschow
2026-04-30 10:42 ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.