]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_command: Use canonical names of CPU features
authorJiri Denemark <jdenemar@redhat.com>
Fri, 7 Jun 2019 13:00:28 +0000 (15:00 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 19 Jun 2019 22:22:39 +0000 (00:22 +0200)
commit5030a7450b0f0117a7903303572c6bda6c012327
tree1ba30a041040b53d8d76f7482bbd53d50d9ecf42
parent6f6401fbae384c66ce6043ced30591050729a4ac
qemu_command: Use canonical names of CPU features

When building QEMU command line, we should use the preferred spelling of
each CPU feature without relying on compatibility aliases (which may be
removed at some point).

The "unavailable-features" CPU property is used as a witness for the
correct names of the features in our translation table.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml
tests/qemuxml2argvdata/cpu-translation.x86_64-latest.args
tests/qemuxml2argvdata/eoi-disabled.x86_64-latest.args
tests/qemuxml2argvdata/eoi-enabled.x86_64-latest.args
tests/qemuxml2argvdata/kvmclock+eoi-disabled.x86_64-latest.args
tests/qemuxml2argvdata/pv-spinlock-disabled.x86_64-latest.args
tests/qemuxml2argvdata/pv-spinlock-enabled.x86_64-latest.args