]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: prefer .requiredCaps for VIR_DOMAIN_STATS_IOTHREAD
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Nov 2021 10:20:29 +0000 (11:20 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 2 Dec 2021 15:57:41 +0000 (16:57 +0100)
commit2c6b8cb507062286bab6da9428adff5ab88b4ebf
tree5fc203fee991d32ff005424a21d38907cd412644
parent9f56686bf0522c047f1142b36df2e40a51271c64
qemu: prefer .requiredCaps for VIR_DOMAIN_STATS_IOTHREAD

Since f29d7c3e698 we have an option for checking capabilities
required for given type of statistics upfront, instead of the
callback. Switch qemuDomainGetStatsIOThread() callback to the new
style.

This will now error out properly if user requests IOTHREAD stats
forcibly (via VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS
flag) but QEMU doesn't support IOThreads. Previously, this was
silently ignored.

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