All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] memory: Introduce address_space_create(), re-use &address_space_memory
@ 2021-08-19 14:20 Philippe Mathieu-Daudé
  2021-08-19 14:20 ` [PATCH 1/6] memory: Do not increase refcount on global system_memory region Philippe Mathieu-Daudé
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-08-19 14:20 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, David Hildenbrand, Mark Cave-Ayland,
	Alistair Francis, Jianxian Wen, Peter Xu, qemu-arm,
	Gerd Hoffmann, Paolo Bonzini, Edgar E. Iglesias,
	Philippe Mathieu-Daudé

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/qemu-devel@nongnu.org/msg829819.html

Based-on: <20210819141527.2821842-1-philmd@redhat.com>

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(-)

-- 
2.31.1




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

end of thread, other threads:[~2021-08-20  7:18 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19 14:20 [PATCH 0/6] memory: Introduce address_space_create(), re-use &address_space_memory Philippe Mathieu-Daudé
2021-08-19 14:20 ` [PATCH 1/6] memory: Do not increase refcount on global system_memory region Philippe Mathieu-Daudé
2021-08-19 14:23   ` Peter Maydell
2021-08-19 14:20 ` [PATCH 2/6] memory: Introduce address_space_create() Philippe Mathieu-Daudé
2021-08-19 14:24   ` Peter Maydell
2021-08-19 14:36     ` Philippe Mathieu-Daudé
2021-08-19 14:20 ` [PATCH 3/6] memory: Have cpu_address_space_init() use address_space_create() Philippe Mathieu-Daudé
2021-08-19 14:20 ` [PATCH 4/6] hw/dma: Replace alloc() + address_space_init() by address_space_create() Philippe Mathieu-Daudé
2021-08-19 14:22   ` Peter Maydell
2021-08-19 14:32     ` Philippe Mathieu-Daudé
2021-08-19 14:38       ` Peter Maydell
2021-08-19 14:41         ` Philippe Mathieu-Daudé
2021-08-19 14:20 ` [PATCH 5/6] hw/usb: " Philippe Mathieu-Daudé
2021-08-19 14:20 ` [RFC PATCH 6/6] memory: Have address_space_create() re-use global &address_space_memory Philippe Mathieu-Daudé
2021-08-19 14:34   ` Peter Maydell
2021-08-19 14:41     ` Philippe Mathieu-Daudé
2021-08-20  6:07     ` Gerd Hoffmann
2021-08-20  7:17       ` Philippe Mathieu-Daudé

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.