All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/7] Implement memory_region_new_* functions
@ 2026-06-15 22:16 BALATON Zoltan
  2026-06-15 22:16 ` [PATCH v6 1/7] Move assert to memory_region_set_ops() BALATON Zoltan
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: BALATON Zoltan @ 2026-06-15 22:16 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Xu, Akihiko Odaki, Paolo Bonzini, Peter Maydell, berrange,
	philmd

Allow creating memory regions that are managed by QOM and freed with
their owner as it is already documented and implemented but there was
no way to use it.

v6:
- rebase on master
- do not export memory_region_set_ops in patch 1 (will try different
way in ati-vga for this)

v5:
- rebase on master
- add patch to export memory_region_set_ops (needed for ati-vga endian
switch)

v4:
- rebase on latest version of clean up series:
Based-on: cover.1772924151.git.balaton@eik.bme.hu

v3:
- based on split off clean up series
- convert xtfpga from nomigrate as this has no migration compatibility
issue

v2:
- rebase on master
- update documentation
- use these function to fix some leaks (there may be more, e.g. in
hw/pci-host/bonito but I leave that for later and/or others)

BALATON Zoltan (7):
  Move assert to memory_region_set_ops()
  memory: Add memory_region_new* functions
  memory: Update documentation for memory_region_new*()
  hw/ide/sii3112: Use memory_region_new to avoid leaking regions
  hw/pci-host/articia: Map PCI memory windows in realize
  hw/pci-host/articia: Add variable for common type cast
  hw/xtensa/xtfpga: Fix leaking memory region

 docs/devel/memory.rst   |  21 ++---
 hw/ide/sii3112.c        |  30 +++----
 hw/pci-host/articia.c   |  22 +++--
 hw/ppc/amigaone.c       |  28 ++-----
 hw/ppc/pegasos.c        |  13 ---
 hw/xtensa/xtfpga.c      |   5 +-
 include/system/memory.h | 179 +++++++++++++++++++++++++++++++++++++++
 system/memory.c         | 181 +++++++++++++++++++++++++++++++++++++++-
 8 files changed, 406 insertions(+), 73 deletions(-)

-- 
2.41.3



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

end of thread, other threads:[~2026-06-15 22:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 22:16 [PATCH v6 0/7] Implement memory_region_new_* functions BALATON Zoltan
2026-06-15 22:16 ` [PATCH v6 1/7] Move assert to memory_region_set_ops() BALATON Zoltan
2026-06-15 22:16 ` [PATCH v6 2/7] memory: Add memory_region_new* functions BALATON Zoltan
2026-06-15 22:16 ` [PATCH v6 3/7] memory: Update documentation for memory_region_new*() BALATON Zoltan
2026-06-15 22:17 ` [PATCH v6 4/7] hw/ide/sii3112: Use memory_region_new to avoid leaking regions BALATON Zoltan
2026-06-15 22:17 ` [PATCH v6 5/7] hw/pci-host/articia: Map PCI memory windows in realize BALATON Zoltan
2026-06-15 22:17 ` [PATCH v6 6/7] hw/pci-host/articia: Add variable for common type cast BALATON Zoltan
2026-06-15 22:17 ` [PATCH v6 7/7] hw/xtensa/xtfpga: Fix leaking memory region BALATON Zoltan

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.