]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: qemuDomainGetStatsVcpu: Fix output for possible sparse vCPU settings
authorPeter Krempa <pkrempa@redhat.com>
Fri, 12 Feb 2016 07:24:07 +0000 (08:24 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 19 Feb 2016 14:23:54 +0000 (15:23 +0100)
commit783584b52b3ddeea2b0bf46dc1e20455d3877dc8
tree86a6dd713cd529290b5c4fdb4c582174292b31b1
parent9958422d1065cdff0030f9f63e7e29e7113e311e
qemu: qemuDomainGetStatsVcpu: Fix output for possible sparse vCPU settings

qemuDomainHelperGetVcpus would correctly return an array of
virVcpuInfoPtr structs for online vcpus even for sparse topologies, but
the loop that fills the returned typed parameters would number the vcpus
incorrectly. Fortunately sparse topologies aren't supported yet.
src/qemu/qemu_driver.c