Skip to content

-numa option parsing fixes & improvements

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10vl.c: Fix off-by-one bug when handling "-numa node" argumentvl.c+4 -10 replies
2/10vl.c: Abort on unknown -numa option typevl.c+3 -00 replies
3/10vl.c: Isolate code specific to "-numa node" option typevl.c+41 -342 replies
4/10vl.c: Check for NUMA node limit inside numa_node_add()vl.c+5 -40 replies
5/10vl.c: Extract -numa "cpus" parsing to separate functionvl.c+22 -180 replies
6/10vl.c: handle invalid NUMA CPU ranges properlyvl.c+23 -12 replies
7/10vl.c: numa_add_node(): Validate nodeid before using itvl.c+5 -00 replies
8/10vl.c: Support multiple CPU ranges on -numa optionvl.c+13 -10 replies
9/10vl.c: Introduce QemuOpts-friendly "-numa-node" config optionqemu-config.c qemu-options.hx vl.c+164 -310 replies
10/10vl.c: Handle legacy "-numa node, cpus=A, B, C, D" formatvl.c+11 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/10] -numa option parsing fixes & improvements

This series contains the following:

* Patches 1-7 are multiple bug fixes to the current code
* Patch 8 introduce a feature that libvirt requires since a long time, and even tries to use it today (in a way that doesn't work, using the "-numa node,cpus=1,2,3,4" format): having non-contiguous CPU ranges assigned to a NUMA node.

The last 2 patches I am sending as RFCs:

* Patch 9 makes the "-numa" option deprecated and introduces a "-numa-node" command-line and config file option.
* Patch 10 adds a small hack to the (now deprecated) "-numa" option, that makes the "cpus=1,2,3,4" format currently used by libvirt work.

Eduardo Habkost (10):
vl.c: Fix off-by-one bug when handling "-numa node" argument vl.c: Abort on unknown -numa option type
vl.c: Isolate code specific to "-numa node" option type vl.c: Check for NUMA node limit inside numa_node_add() vl.c: Extract -numa "cpus" parsing to separate function vl.c: handle invalid NUMA CPU ranges properly vl.c: numa_add_node(): Validate nodeid before using it vl.c: Support multiple CPU ranges on -numa option vl.c: Introduce QemuOpts-friendly "-numa-node" config option vl.c: Handle legacy "-numa node,cpus=A,B,C,D" format

 qemu-config.c   |  25 +++++++
 qemu-options.hx |  50 +++++++++++++-
 vl.c            | 204 ++++++++++++++++++++++++++++++++++++++++++++++----------
 3 files changed, 240 insertions(+), 39 deletions(-)
Signature · 1 line
1.7.11.7