]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: -numa doesn't (yet) support disjoint range
authorEric Blake <eblake@redhat.com>
Wed, 27 Feb 2013 00:43:12 +0000 (17:43 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 27 Feb 2013 16:31:42 +0000 (09:31 -0700)
commit25dc8ba08b32c7430d81228718c90d277f902f18
tree7605f7b7afd59d3dfc101ea6336597338c897b31
parentdb2536a6273ca6144d29da2f3b87d818a69f7a1d
qemu: -numa doesn't (yet) support disjoint range

https://bugzilla.redhat.com/show_bug.cgi?id=896092 mentions that
qemu 1.4 and earlier only accept a simple start-stop range for
the cpu=... argument of -numa.  Libvirt would attempt to use
-numa cpu=1,3 for a disjoint range, which did not work as intended.

Upstream qemu will be adding a new syntax for disjoint cpu ranges
in 1.5; but the design for that syntax is still under discussion
at the time of this patch.  So for libvirt 1.0.3, it is safest to
just reject attempts to build an invalid qemu command line; in the
future, we can add a capability bit and translate to the final
accepted design for selecting a disjoint cpu range in numa.

* src/qemu/qemu_command.c (qemuBuildNumaArgStr): Reject disjoint
ranges.
src/qemu/qemu_command.c