]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Simplify return values of qemuDomainRefreshVcpuInfo
authorPeter Krempa <pkrempa@redhat.com>
Mon, 1 Aug 2016 05:35:50 +0000 (07:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 4 Aug 2016 06:08:40 +0000 (08:08 +0200)
commit041f35340b949e4b4dbb8fbbbc12d69dfac734a6
tree4f6b54717e2f38876a31ab375850b1670525ac27
parent2bdc300a34f07a43cc1362e785c2bfdcfc73bf31
qemu: domain: Simplify return values of qemuDomainRefreshVcpuInfo

Call the vcpu thread info validation separately to decrease complexity
of returned values by qemuDomainRefreshVcpuInfo.

This function now returns 0 on success and -1 on error. Certain
failures of qemu to report data are still considered as success. Any
error reported now is fatal.
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/qemu/qemu_process.c