]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Support new cpu feature argument syntax
authorCollin L. Walling <walling@linux.vnet.ibm.com>
Sun, 18 Dec 2016 19:22:29 +0000 (14:22 -0500)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 6 Jan 2017 11:24:57 +0000 (12:24 +0100)
commitd47db7b16dd5422c7e487c8c8ee5b181a2f9cd66
tree1479081e1758c45837bbf9afbee0c2c21efc4624
parent27e411fa837cd73c75dcf848756fda708a40c2f6
qemu: command: Support new cpu feature argument syntax

Qemu has abandoned the +/-feature syntax in favor of key=value. Some
architectures (s390) do not support +/-feature. So we update libvirt to handle
both formats.

If we detect a sufficiently new Qemu (indicated by support for qmp
query-cpu-model-expansion) we use key=value else we fall back to +/-feature.

Signed-off-by: Collin L. Walling <walling@linux.vnet.ibm.com>
Signed-off-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-cpu-s390-features.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-cpu-s390-features.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c