]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMonitorJSONGetKVMState: Don't return early on CommandNotFound
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 21 Oct 2021 08:46:09 +0000 (10:46 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 22 Oct 2021 05:00:44 +0000 (07:00 +0200)
commitdea2dcea72ebe63cc31bdbbaf10b448c5d5e4ca8
tree1f60a91c4e90bbba7d0dcb9c9400cb7957fbee31
parent432ff3166edfe1193d98cfe2afbb546561037b50
qemuMonitorJSONGetKVMState: Don't return early on CommandNotFound

The qemuMonitorJSONGetKVMState() command executes 'query-kvm'
command and returns early if QEMU doesn't know the command. Well,
the command was introduced in QEMU release 0.14 and since the
minimum required version is 2.11.0 we can be sure that command
will always exist.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor_json.c