]> 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)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 13 Nov 2014 19:33:28 +0000 (20:33 +0100)
commitab393383c84eb049fc2d75c3e79249ca58062887
treefb08cd38c5d7281cca369a772e2a755a53a77a40
parent6b99642f0a40bc92b3e2a10bb1a9b8fac2b19545
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>
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