Skip to content

Implement memory_region_new_* functions

BALATON Zoltan qemu-devel 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest7 patches 0 repliesNew
  2. v57 patches 5 repliesSuperseded
  3. v46 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v36 patches7 repliesSuperseded
v210 patches13 repliesSuperseded
v16 patches8 repliesSuperseded

Changes in v6 from the cover letter

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

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Move assert to memory_region_set_ops()system/memory.c+1 -10 replies
2/7memory: Add memory_region_new* functionsinclude/system/memory.h system/memory.c+260 -00 replies
3/7memory: Update documentation for memory_region_new*()docs/devel/memory.rst include/system/memory.h+109 -100 replies
4/7hw/ide/sii3112: Use memory_region_new to avoid leaking regionshw/ide/sii3112.c+12 -180 replies
5/7hw/pci-host/articia: Map PCI memory windows in realizehw/pci-host/articia.c hw/ppc/amigaone.c hw/ppc/pegasos.c+18 -370 replies
6/7hw/pci-host/articia: Add variable for common type casthw/pci-host/articia.c+8 -80 replies
7/7hw/xtensa/xtfpga: Fix leaking memory regionhw/xtensa/xtfpga.c+2 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/7] Implement memory_region_new_* functions

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: [email protected]

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(-)
Signature · 1 line
2.41.3