Skip to content

memory: Remove most _nomigrate variants

BALATON Zoltan qemu-devel 10 versions – Applied

Status from this message: I queued the rest too for 11.0, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest9 patches 2 repliesApplied
  2. v98 patches 1 replySuperseded
  3. v88 patches 2 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v79 patches0 repliesSuperseded
v68 patches6 repliesSuperseded
v58 patches8 repliesSuperseded
v48 patches15 repliesSuperseded
v37 patches0 repliesSuperseded
v27 patches3 repliesSuperseded
v14 patches9 repliesSuperseded

Changes in v10 from the cover letter

- remove #include in patch 4 (xtfpga) not needed any more
- add one more patch to factor out more common code
- added R-b tags

Patches in v10 Applied

#Subject and filesSizeRepliesApplied
1/9hw/display/{cg3.tcx}: Do not use memory_region_init_rom_nomigrate()hw/display/cg3.c hw/display/tcx.c+4 -61 reply
2/9memory: Remove memory_region_init_rom_nomigrate()docs/devel/memory.rst include/system/memory.h scripts/coccinelle/memory-region-housekeeping.cocci +1 more+3 -710 replies
3/9sun4m,sun4u,tcx: Do not use memory_region_init_ram_nomigrate()hw/display/tcx.c hw/sparc/sun4m.c hw/sparc64/sun4u.c+9 -230 replies
4/9hw/xtensa/xtfpga: Do not use memory_region_init_ram_nomigrate()hw/xtensa/xtfpga.c+1 -30 replies
5/9memory: Remove memory_region_init_ram_nomigrate()docs/devel/memory.rst hw/display/vga.c include/system/memory.h +2 more+7 -600 replies
6/9memory: Shorten memory_region_init_ram_device_ptr and memory_region_init_rom_devicesystem/memory.c+2 -40 replies
7/9memory: Add internal memory_region_register_ram functionsystem/memory.c+23 -570 replies
8/9memory: Factor out common ram region initializationsystem/memory.c+61 -1060 replies
9/9memory: Factor out common ram ptr initializationsystem/memory.c+11 -120 replies

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchPeter MaydellAkihiko OdakiPhilippe Mathieu-Daudé
1/9R-b R-b
2/9R-b
3/9R-b R-b
4/9R-b R-b
5/9R-b
6/9R-b
7/9R-b R-b
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v10 thread

Cover letter [PATCH v10 0/9] memory: Remove most _nomigrate variants

v10:
- remove #include in patch 4 (xtfpga) not needed any more
- add one more patch to factor out more common code
- added R-b tags

v9:
- call qemu_ram_alloc after memory_region_init (Akihiko)
- add R-b tag to xtfpga patch

v8:
- reorganise patches to move simpler ones earlier
- drop error_propagate as suggested by Akihiko Odaki to follow current recommendations and so we don't need local err and don't have to pass errp to helper function

v7:
- convert xtfpga from global vmstate; this leaves just the vga usage of memory_region_init_ram_nomigrate so the >1 use is not anymore an argument therefore remove memory_region_init_ram_nomigrate too
- drop memory_region_error_propagate() until we can agree on what to do with it

v6:
- keep the last two uses of memory_region_init_ram_nomigrate in vga and xtfpga for now
- added R-b tags

v5:
- convert Sun machines and their display devices from global vmstate

v4:
- separate patch converting Sun machines from memory_region_init_ram_nomigrate
- split helper to init ram into two functions: setup and error_propagate
- also use memory_region_init_io in memory_region_init_ram_device_ptr

v3:
- rebased on master after some patches were merged
- drop some more line from memory-region-housekeeping.cocci
- added comment to explain what factored out helper does
- some more clean ups included

BALATON Zoltan (9):
hw/display/{cg3.tcx}: Do not use memory_region_init_rom_nomigrate()
memory: Remove memory_region_init_rom_nomigrate() sun4m,sun4u,tcx: Do not use memory_region_init_ram_nomigrate() hw/xtensa/xtfpga: Do not use memory_region_init_ram_nomigrate()
memory: Remove memory_region_init_ram_nomigrate()
memory: Shorten memory_region_init_ram_device_ptr and
memory_region_init_rom_device
memory: Add internal memory_region_register_ram function
memory: Factor out common ram region initialization
memory: Factor out common ram ptr initialization

 docs/devel/memory.rst                         |   9 +-
 hw/display/cg3.c                              |   5 +-
 hw/display/tcx.c                              |   8 +-
 hw/display/vga.c                              |   4 +-
 hw/sparc/sun4m.c                              |  19 +-
 hw/sparc64/sun4u.c                            |  10 +-
 hw/xtensa/xtfpga.c                            |   4 +-
 include/system/memory.h                       |  49 ---
 .../memory-region-housekeeping.cocci          |  47 ---
 system/memory.c                               | 282 ++++++------------
 10 files changed, 108 insertions(+), 329 deletions(-)
Signature · 1 line
2.41.3