Skip to content

Add support for binding guest numa nodes to host numa nodes

Hu Tao qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v19 Latest11 patches 3 repliesIn review
  2. v1814 patches 38 repliesSuperseded

Changes in v19 from the cover letter

- use complete() method of user_creatable in memdev backend
- implement qmp query-memdev by walking through numa_info[...].node_memdev and using object_property_get to get information as suggested by Paolo
- implement info memdev
- drop ram_backend->relative
- make string output visitor parse int list
- introduce libnuma

Patches in v19 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11object_add: allow completion handler to get canonical pathqmp.c vl.c+10 -70 replies
2/11add memdev backend infrastructurebackends/Makefile.objs backends/hostmem-ram.c backends/hostmem.c +1 more+249 -00 replies
3/11pc: pass QEMUMachineInitArgs to pc_memory_inithw/i386/pc.c hw/i386/pc_piix.c hw/i386/pc_q35.c +1 more+12 -180 replies
4/11numa: introduce memory_region_allocate_system_memoryhw/i386/pc.c include/sysemu/sysemu.h numa.c+16 -30 replies
5/11numa: add -numa node, memdev= optioninclude/sysemu/sysemu.h numa.c qapi-schema.json+72 -30 replies
6/11qapi: make string input visitor parse int listqapi/string-input-visitor.c tests/test-string-input-visitor.c+175 -60 replies
7/11qapi: make string output visitor parse int listqapi/string-output-visitor.c tests/test-string-output-visitor.c+177 -53 replies
8/11Add Linux libnuma detectionconfigure+33 -00 replies
9/11hostmem backend: implement memory policybackends/hostmem.c include/sysemu/hostmem.h qapi-schema.json+118 -30 replies
10/11qmp: add query-memdevbackends/hostmem.c numa.c qapi-schema.json +1 more+125 -00 replies
11/11hmp: add info memdevhmp.c hmp.h monitor.c+35 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v19 yet.

Read the v19 thread

Cover letter [Qemu-devel] [PATCH v19 00/11] Add support for binding guest numa nodes to host numa nodes

Based on series `convert -numa to QemuOpts/OptsVisitor' posted by Igor at http://lists.nongnu.org/archive/html/qemu-devel/2014-02/msg02801.html.

You can also checkout this series out at
https://github.com/taohu/qemu/tree/numa-binding-v19, including all required patches.

changes in v19:

- use complete() method of user_creatable in memdev backend
- implement qmp query-memdev by walking through numa_info[...].node_memdev and using object_property_get to get information as suggested by Paolo
- implement info memdev
- drop ram_backend->relative
- make string output visitor parse int list
- introduce libnuma

Hu Tao (5):
qapi: make string input visitor parse int list
qapi: make string output visitor parse int list
hostmem backend: implement memory policy
qmp: add query-memdev
hmp: add info memdev

Igor Mammedov (2):
object_add: allow completion handler to get canonical path add memdev backend infrastructure

Paolo Bonzini (3):
pc: pass QEMUMachineInitArgs to pc_memory_init
numa: introduce memory_region_allocate_system_memory
numa: add -numa node,memdev= option

Wanlong Gao (1):
Add detection of libnuma (mostly contained in the numactl package)
to the configure script. Can be enabled or disabled on the command
line, default is use if available.

 backends/Makefile.objs             |   2 +
 backends/hostmem-ram.c             |  77 ++++++++++++++
 backends/hostmem.c                 | 202 +++++++++++++++++++++++++++++++++++++
 configure                          |  33 ++++++
 hmp.c                              |  27 +++++
 hmp.h                              |   1 +
 hw/i386/pc.c                       |  15 ++-
 hw/i386/pc_piix.c                  |   8 +-
 hw/i386/pc_q35.c                   |   4 +-
 include/hw/i386/pc.h               |   7 +-
 include/sysemu/hostmem.h           |  64 ++++++++++++
 include/sysemu/sysemu.h            |   8 ++
 monitor.c                          |   7 ++
 numa.c                             | 133 ++++++++++++++++++++++++
 qapi-schema.json                   |  57 ++++++++++-
 qapi/string-input-visitor.c        | 160 +++++++++++++++++++++++++++--
 qapi/string-output-visitor.c       | 156 +++++++++++++++++++++++++++-
 qmp-commands.hx                    |  32 ++++++
 qmp.c                              |   8 +-
 tests/test-string-input-visitor.c  |  21 ++++
 tests/test-string-output-visitor.c |  26 +++++
 vl.c                               |   9 +-
 22 files changed, 1017 insertions(+), 40 deletions(-)
 create mode 100644 backends/hostmem-ram.c
 create mode 100644 backends/hostmem.c
 create mode 100644 include/sysemu/hostmem.h
Signature · 1 line
1.8.5.2.229.g4448466