Current state of NUMA series, and hostmem improvements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest28 patches 41 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/28 | NUMA: move numa related code to new file numa.cMakefile.target cpus.c include/ +5 more | +193 | 0 replies | |
| 2/28 | NUMA: check if the total numa memory size is equal to ram_sizenuma.c | +11 | 2 replies | |
| 3/28 | NUMA: Add numa_info structure to contain numa nodes infohw/ hw/ include/ +3 more | +35 | 0 replies | |
| 4/28 | NUMA: convert -numa option to use OptsVisitorinclude/ numa.c qapi-schema.json +1 more | +114 | 0 replies | |
| 5/28 | NUMA: expand MAX_NODES from 64 to 128include/ | +1 | 0 replies | |
| 6/28 | man: improve -numa docqemu-options.hx | +7 | 1 reply | |
| 7/28 | qemu-option: introduce qemu_find_opts_singletoninclude/ util/ vl.c | +17 | 3 replies | |
| 8/28 | vl: convert -m to QemuOptsqemu-options.hx vl.c | +63 | 3 replies | |
| 9/28 | vl: redo -object parsingvl.c | +35 | 2 replies | |
| 10/28 | qmp: allow object-add completion handler to get canonical pathqmp.c | +5 | 0 replies | |
| 11/28 | qmp: improve error reporting for -object and object-addqmp.c | +4 | 2 replies | |
| 12/28 | pc: pass QEMUMachineInitArgs to pc_memory_inithw/ hw/ hw/ +1 more | +12 | 1 reply | |
| 13/28 | numa: introduce memory_region_allocate_system_memoryhw/ include/ include/ +1 more | +17 | 1 reply | |
| 14/28 | add memdev backend infrastructurebackends/ backends/ backends/ +1 more | +224 | 1 reply | |
| 15/28 | numa: add -numa node, memdev= optioninclude/ numa.c qapi-schema.json +1 more | +77 | 3 replies | |
| 16/28 | memory: reorganize file-based allocationexec.c include/ include/ +2 more | +73 | 3 replies | |
| 17/28 | memory: move mem_path handling to memory_region_allocate_system_memoryexec.c include/ memory.c +1 more | +46 | 3 replies | |
| 18/28 | memory: add error propagation to file-based RAM allocationexec.c include/ include/ +2 more | +40 | 0 replies | |
| 19/28 | memory: move preallocation code out of exec.cexec.c include/ util/ | +76 | 0 replies | |
| 20/28 | memory: move RAM_PREALLOC_MASK to exec.c, renameexec.c include/ | +6 | 0 replies | |
| 21/28 | hostmem: add file-based HostMemoryBackendbackends/ backends/ | +109 | 3 replies | |
| 22/28 | hostmem: separate allocation from UserCreatable complete methodbackends/ backends/ backends/ +1 more | +19 | 1 reply | |
| 23/28 | hostmem: add merge and dump propertiesbackends/ include/ include/ | +93 | 0 replies | |
| 24/28 | hostmem: allow preallocation of any memory regionbackends/ backends/ exec.c +4 more | +73 | 0 replies | |
| 25/28 | hostmem: add property to map memory with MAP_SHAREDbackends/ exec.c include/ +3 more | +40 | 0 replies | |
| 26/28 | configure: add Linux libnuma detectionconfigure | +33 | 0 replies | |
| 27/28 | hostmem: add properties for NUMA memory policybackends/ include/ qapi-schema.json | +132 | 0 replies | |
| 28/28 | qmp: add query-memdevnuma.c qapi-schema.json qmp-commands.hx | +127 | 5 replies |
Reviews trailers per patch
9 of 28 patches have a Reviewed-by or Acked-by.
| Patch | Eduardo Habkost | Laszlo Ersek | Eric Blake | Andreas Färber | Hu Tao |
|---|---|---|---|---|---|
| 1/28 | R-b | ||||
| 2/28 | R-b | ||||
| 3/28 | R-b | ||||
| 4/28 | T-b R-b | ||||
| 5/28 | R-b | ||||
| 6/28 | R-b | ||||
| 7/28 | R-b | R-b | R-b | R-b | |
| 8/28 | R-b | ||||
| 9/28 | |||||
| 10/28 | |||||
| 11/28 | |||||
| 12/28 | R-b | ||||
| 13/28 | |||||
| 14/28 | |||||
| 15/28 | |||||
| 16/28 | |||||
| 17/28 | |||||
| 18/28 | |||||
| 19/28 | |||||
| 20/28 | |||||
| 21/28 | |||||
| 22/28 | |||||
| 23/28 | |||||
| 24/28 | |||||
| 25/28 | |||||
| 26/28 | |||||
| 27/28 | |||||
| 28/28 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [Qemu-devel] [PATCH 2.1 00/28] Current state of NUMA series, and hostmem improvements
This series includes all the pending work on QOMifying the memory backends. Some of the patches posted so far didn't correctly build all targets, so I'm posting it as the basis for further work (including memory hotplug!). It's available at branch numa on my github repository.
To recap, the idea is to delegate all properties of the memory backend to a new QOM class hierarchy, in which the concrete classes are hostmem-ram and hostmem-file. The backend is passed to the machine via "-numa node,memdev=foo" where "foo" is the id of the backend object.
Patches 1-6: generic numa improvements
Patches 7-8: convert -m to QemuOpts, from the memory hotplug series Patches 9-11: improvements to object-add and -object
Patches 12-15: infrastructure for QOM memory backends
Patches 16-20: preparation for replacing -mem-path with a QOM backend Patches 21-24: new-style replacement for -mem-path, -mem-prealloc and madvise Patch 25: support for MAP_SHARED (requested by vhost-user) Patches 26-28: rest of Wanlong Gao and Hu Tao's NUMA policy work
New patches are patch 9, patch 11, patches 16-25. Please review them.
Missing, needed before merge:
1. conversion to memory_region_allocate_system_memory of all boards
2. more documentation
Missing, nice to have:
1. improvements to string visitors for ranges
2. HMP "info memdev" command
If anyone wants to pick up management of this series from now on, just shout.
Paolo
Hu Tao (2):
hostmem: add properties for NUMA memory policy
qmp: add query-memdev
Igor Mammedov (3):
vl: convert -m to QemuOpts
qmp: allow object-add completion handler to get canonical path add memdev backend infrastructure
Luiz Capitulino (1):
man: improve -numa doc
Paolo Bonzini (16):
qemu-option: introduce qemu_find_opts_singleton
vl: redo -object parsing
qmp: improve error reporting for -object and object-add
pc: pass QEMUMachineInitArgs to pc_memory_init
numa: introduce memory_region_allocate_system_memory
numa: add -numa node,memdev= option
memory: reorganize file-based allocation
memory: move mem_path handling to memory_region_allocate_system_memory
memory: add error propagation to file-based RAM allocation
memory: move preallocation code out of exec.c
memory: move RAM_PREALLOC_MASK to exec.c, rename
hostmem: add file-based HostMemoryBackend
hostmem: separate allocation from UserCreatable complete method
hostmem: add merge and dump properties
hostmem: allow preallocation of any memory region
hostmem: add property to map memory with MAP_SHARED
Wanlong Gao (6):
NUMA: move numa related code to new file numa.c
NUMA: check if the total numa memory size is equal to ram_size
NUMA: Add numa_info structure to contain numa nodes info
NUMA: convert -numa option to use OptsVisitor
NUMA: expand MAX_NODES from 64 to 128
configure: add Linux libnuma detection
Makefile.target | 2 +- backends/Makefile.objs | 3 + backends/hostmem-file.c | 134 +++++++++++++++++ backends/hostmem-ram.c | 50 +++++++ backends/hostmem.c | 346 ++++++++++++++++++++++++++++++++++++++++++++ configure | 33 +++++ cpus.c | 14 -- exec.c | 206 +++++++++++++-------------- hw/i386/pc.c | 27 ++-- hw/i386/pc_piix.c | 8 +- hw/i386/pc_q35.c | 4 +- hw/ppc/spapr.c | 10 +- include/exec/cpu-all.h | 8 -- include/exec/cpu-common.h | 2 + include/exec/memory.h | 33 +++++ include/exec/ram_addr.h | 3 + include/hw/boards.h | 4 + include/hw/i386/pc.h | 7 +- include/qemu/config-file.h | 2 + include/qemu/osdep.h | 12 ++ include/sysemu/cpus.h | 1 - include/sysemu/hostmem.h | 68 +++++++++ include/sysemu/sysemu.h | 18 ++- memory.c | 29 ++++ monitor.c | 2 +- numa.c | 347 +++++++++++++++++++++++++++++++++++++++++++++ qapi-schema.json | 89 ++++++++++++ qemu-options.hx | 25 +++- qmp-commands.hx | 32 +++++ qmp.c | 15 +- util/oslib-posix.c | 73 ++++++++++ util/qemu-config.c | 14 ++ vl.c | 323 ++++++++++++++--------------------------- 33 files changed, 1549 insertions(+), 395 deletions(-) create mode 100644 backends/hostmem-file.c create mode 100644 backends/hostmem-ram.c create mode 100644 backends/hostmem.c create mode 100644 include/sysemu/hostmem.h create mode 100644 numa.c
Signature · 1 line
1.8.5.3