]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Use full CPU model expansion on x86
authorJiri Denemark <jdenemar@redhat.com>
Thu, 23 Feb 2017 12:53:51 +0000 (13:53 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 3 Mar 2017 18:57:57 +0000 (19:57 +0100)
commitbb3363c90b5b19c37f8e5b8f512eb00014d2dae4
tree8bc752ef89ef48dad48cb15616209578eb2f4d90
parentbe3d59754b1a1da174ff1796882a0ceb35e198e8
qemu: Use full CPU model expansion on x86

The static CPU model expansion is designed to return only canonical
names of all CPU properties. To maintain backwards compatibility libvirt
is stuck with different spelling of some of the features, but we need to
use the full expansion to get the additional spellings. In addition to
returning all spelling variants for all properties the full expansion
will contain properties which are not guaranteed to be migration
compatible. Thus, we need to combine both expansions. First we need to
call the static expansion to limit the result to migratable properties.
Then we can use the result of the static expansion as an input to the
full expansion to get both canonical names and their aliases.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
tests/domaincapsschemadata/qemu_2.9.0-tcg.x86_64.xml
tests/domaincapsschemadata/qemu_2.9.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.9.0.x86_64.replies
tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml