Skip to content

memory-device: Some cleanups

David Hildenbrand qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3memory-device: Refactor memory_device_pre_plug()hw/mem/memory-device.c+19 -190 replies
2/3memory-device: Factor out device memory initialization into memory_devices_init()hw/arm/virt.c hw/i386/pc.c hw/loongarch/virt.c +3 more+39 -384 replies
3/3memory-device: Track used region size in DeviceMemoryStatehw/mem/memory-device.c include/hw/boards.h+5 -190 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchSong Gao
1/3
2/3T-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/3] memory-device: Some cleanups

Working on adding multi-memslot support for virtio-mem (teaching memory device code about memory devices that can consume multiple memslots), I have some preparatory cleanups in my queue that make sense independent of the actual memory-device/virtio-mem extensions.

Most CCed people are most probably interested in patch #2.

Cc Igor Mammedov <[email protected]>
Cc Xiao Guangrong <[email protected]>
Cc Peter Maydell <[email protected]>
Cc "Michael S. Tsirkin" <[email protected]>
Cc Marcel Apfelbaum <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Richard Henderson <[email protected]>
Cc Eduardo Habkost <[email protected]>
Cc Xiaojuan Yang <[email protected]>
Cc Song Gao <[email protected]>
Cc Daniel Henrique Barboza <[email protected]>
Cc "Cédric Le Goater" <[email protected]>
Cc David Gibson <[email protected]>
Cc Greg Kurz <[email protected]>
Cc Harsh Prateek Bora <[email protected]>
Cc "Philippe Mathieu-Daudé" <[email protected]>
Cc Yanan Wang <[email protected]>

David Hildenbrand (3):
memory-device: Refactor memory_device_pre_plug()
memory-device: Factor out device memory initialization into
memory_devices_init()
memory-device: Track used region size in DeviceMemoryState

 hw/arm/virt.c                  |  9 +---
 hw/i386/pc.c                   | 17 +++-----
 hw/loongarch/virt.c            | 14 ++----
 hw/mem/memory-device.c         | 80 ++++++++++++++++++----------------
 hw/ppc/spapr.c                 | 15 +++----
 include/hw/boards.h            |  2 +
 include/hw/mem/memory-device.h |  2 +
 7 files changed, 63 insertions(+), 76 deletions(-)
Signature · 1 line
2.40.1