]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Clarify QEMU_CAPS_KVM
authorAndrea Bolognani <abologna@redhat.com>
Thu, 13 Sep 2018 14:56:55 +0000 (16:56 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 17 Sep 2018 12:52:41 +0000 (14:52 +0200)
commitc3be8bb4235b447dc29568f96b8c31cc741fc358
tree5bcc7d30334969c992060b617461990b1a99c2f1
parent55e5eb94788be06dd366de4987523bbc731672db
qemu: Clarify QEMU_CAPS_KVM

This capability is documented as having one meaning (whether
KVM is enabled by default) but is actually assigned two other
meanings over its life: whether the query-kvm QMP command is
available at first, and later on whether KVM is usable / was
used during probing.

Since the query-kvm QMP command was available in 1.5.0, we
can avoid probing for it; additionally, we can simplify the
logic by setting the flag when it applies instead of initially
setting it and then clearing it when it doesn't.

The flag's description is also updated to reflect reality.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h