qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/10] memory-device: Some cleanups
@ 2023-06-23 12:45 David Hildenbrand
  2023-06-23 12:45 ` [PATCH v4 01/10] memory-device: Unify enabled vs. supported error messages David Hildenbrand
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: David Hildenbrand @ 2023-06-23 12:45 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-arm, qemu-ppc, Igor Mammedov, Philippe Mathieu-Daudé,
	Xiao Guangrong, David Hildenbrand, Cédric Le Goater,
	Daniel Henrique Barboza, David Gibson, Eduardo Habkost, Greg Kurz,
	Harsh Prateek Bora, Marcel Apfelbaum, Michael S. Tsirkin,
	Paolo Bonzini, Peter Maydell, Richard Henderson, Song Gao,
	Xiaojuan Yang

Essentially a resend with ACKs/RBs. If I don't get any more comments
I'll queue this to my mem-next tree next week.


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.

v3 -> v4:
- Added RBs and ACKs

v2 -> v3:
- "memory-device: Introduce machine_memory_devices_init()"
-- Declare the function in hw/boards.h
- "hw/loongarch/virt: Use machine_memory_devices_init()"
-- Use VIRT_HIGHMEM_BASE
-- No need to include memory-device.h
- "hw/i386/pc: Remove PC_MACHINE_DEVMEM_REGION_SIZ"
-- Add more details why it's ok to the patch description
- Adjust to memory_devices_init() -> machine_memory_devices_init()
- Add RBs

v1 -> v2:
- Allocate ms->device_memory only if the size > 0.
- Split it up and include more cleanups

David Hildenbrand (10):
  memory-device: Unify enabled vs. supported error messages
  memory-device: Introduce machine_memory_devices_init()
  hw/arm/virt: Use machine_memory_devices_init()
  hw/ppc/spapr: Use machine_memory_devices_init()
  hw/loongarch/virt: Use machine_memory_devices_init()
  hw/i386/pc: Use machine_memory_devices_init()
  hw/i386/acpi-build: Rely on machine->device_memory when building SRAT
  hw/i386/pc: Remove PC_MACHINE_DEVMEM_REGION_SIZE
  memory-device: Refactor memory_device_pre_plug()
  memory-device: Track used region size in DeviceMemoryState

 hw/arm/virt.c          |  9 +-----
 hw/i386/acpi-build.c   |  9 ++----
 hw/i386/pc.c           | 36 +++-------------------
 hw/loongarch/virt.c    | 12 ++------
 hw/mem/memory-device.c | 69 +++++++++++++++++++-----------------------
 hw/ppc/spapr.c         | 37 +++++++++++-----------
 hw/ppc/spapr_hcall.c   |  2 +-
 include/hw/boards.h    |  4 +++
 include/hw/i386/pc.h   |  1 -
 9 files changed, 67 insertions(+), 112 deletions(-)

-- 
2.40.1



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

end of thread, other threads:[~2023-06-27 12:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-23 12:45 [PATCH v4 00/10] memory-device: Some cleanups David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 01/10] memory-device: Unify enabled vs. supported error messages David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 02/10] memory-device: Introduce machine_memory_devices_init() David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 03/10] hw/arm/virt: Use machine_memory_devices_init() David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 04/10] hw/ppc/spapr: " David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 05/10] hw/loongarch/virt: " David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 06/10] hw/i386/pc: " David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 07/10] hw/i386/acpi-build: Rely on machine->device_memory when building SRAT David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 08/10] hw/i386/pc: Remove PC_MACHINE_DEVMEM_REGION_SIZE David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 09/10] memory-device: Refactor memory_device_pre_plug() David Hildenbrand
2023-06-23 12:45 ` [PATCH v4 10/10] memory-device: Track used region size in DeviceMemoryState David Hildenbrand
2023-06-27 12:24 ` [PATCH v4 00/10] memory-device: Some cleanups David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).