]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Store supported migration capabilities in a bitmap
authorJiri Denemark <jdenemar@redhat.com>
Tue, 17 Oct 2017 19:39:41 +0000 (21:39 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 20 Oct 2017 11:36:56 +0000 (13:36 +0200)
commit765d9b124598746552243e1c3f62eea424218e5f
tree53c962f67b98927a1c929ed08c155fe0080be885
parent19bade7ad95a877b0df4d5821f17fd69ad6a54dd
qemu: Store supported migration capabilities in a bitmap

Each time we need to check whether a given migration capability is
supported by QEMU, we call query-migrate-capabilities QMP command and
lookup the capability in the returned list. Asking for the list of
supported capabilities once when we connect to QEMU and storing the
result in a bitmap is much better and we don't need to enter a monitor
just to check whether a migration capability is supported.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_process.c