]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Always set migration capabilities
authorJiri Denemark <jdenemar@redhat.com>
Mon, 10 Nov 2014 13:46:26 +0000 (14:46 +0100)
committerCole Robinson <crobinso@redhat.com>
Sat, 15 Nov 2014 21:02:10 +0000 (16:02 -0500)
commit6cdd9a76a5fbb158eb5ac781fad3c2590c08674e
tree49868f43bbd5552c94bb606b22d67ed94f01a988
parent26a87687c72733593305a6bb60d5bf02a12efc15
qemu: Always set migration capabilities

We used to set migration capabilities only when a user asked for them in
flags. This is fine when migration succeeds since the QEMU process is
killed in the end but in case migration fails or if it's cancelled, some
capabilities may remain turned on with no way to turn them off. To fix
that, migration capabilities have to be turned on if requested but
explicitly turned off in case they were not requested but QEMU supports
them.

https://bugzilla.redhat.com/show_bug.cgi?id=1163953
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
(cherry picked from commit ab393383c84eb049fc2d75c3e79249ca58062887)
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
tests/qemumonitorjsontest.c