Skip to content

memory: Introduce address_space_create(), re-use &address_space_memory

Philippe Mathieu-Daudé qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6memory: Do not increase refcount on global system_memory regionsoftmmu/memory.c+4 -21 reply
2/6memory: Introduce address_space_create()include/exec/memory.h softmmu/memory.c+24 -02 replies
3/6memory: Have cpu_address_space_init() use address_space_create()softmmu/physmem.c+2 -20 replies
4/6hw/dma: Replace alloc() + address_space_init() by address_space_create()hw/dma/xlnx-zdma.c hw/dma/xlnx_csu_dma.c+11 -134 replies
5/6hw/usb: Replace alloc() + address_space_init() by address_space_create()hw/usb/hcd-xhci-sysbus.c+10 -60 replies
6/6memory: Have address_space_create() re-use global &address_space_memorysoftmmu/memory.c+8 -04 replies

Reviews trailers per patch

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

PatchJianxian Wen
1/6
2/6
3/6
4/6
5/6
6/6Inspired-by

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 0/6] memory: Introduce address_space_create(), re-use &address_space_memory

Introduce address_space_create() (return .heap allocated AddressSpace) and return directly &address_space_memory if the root MemoryRegion is get_system_memory().

This simplifies the 'info mtree' output of some boards. Flatview is unchanged.

Inspired by this thread:
https://www.mail-archive.com/[email protected]/msg829819.html

Based-on: <[email protected]>

Philippe Mathieu-Daudé (6):
memory: Do not increase refcount on global system_memory region
memory: Introduce address_space_create()
memory: Have cpu_address_space_init() use address_space_create() hw/dma: Replace alloc() + address_space_init() by
address_space_create()
hw/usb: Replace alloc() + address_space_init() by
address_space_create()
memory: Have address_space_create() re-use global
&address_space_memory

 include/exec/memory.h    | 14 ++++++++++++++
 hw/dma/xlnx-zdma.c       | 15 +++++++++------
 hw/dma/xlnx_csu_dma.c    |  9 ++-------
 hw/usb/hcd-xhci-sysbus.c | 16 ++++++++++------
 softmmu/memory.c         | 24 ++++++++++++++++++++++--
 softmmu/physmem.c        |  4 ++--
 6 files changed, 59 insertions(+), 23 deletions(-)
Signature · 1 line
2.31.1