]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Check migratable host CPU features
authorJiri Denemark <jdenemar@redhat.com>
Wed, 29 Mar 2017 08:58:41 +0000 (10:58 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 30 Mar 2017 07:59:42 +0000 (09:59 +0200)
commit91927c62d8753bbf71154d96daec1d42fcfe35b7
treecd1153ab091482b90ec23896d3037308badbeb01
parent03a6a0dbe0a4ed59191c599c2d3fdba6fb423d9c
qemu: Check migratable host CPU features

If calling query-cpu-model-expansion on the 'host'/'max' CPU model with
'migratable' property set to false succeeds, we know QEMU is able to
tell us which features would disable migration. Thus we can mark all
enabled features as migratable.

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