]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: do upfront check for vcpupids being null when querying pinning
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 10 Feb 2015 16:23:16 +0000 (16:23 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 12 Feb 2015 13:08:27 +0000 (13:08 +0000)
commit1021df2815ddbf6cfc54c7dab9a55c826196e9f3
tree86677e63845ac4c51c36f0eaf98ae8a7740fddab
parentb89978d53d7c2317f59a0c0ae982a45ad35a0a15
qemu: do upfront check for vcpupids being null when querying pinning

The qemuDomainHelperGetVcpus attempted to report an error when the
vcpupids info was NULL. Unfortunately earlier code would clamp the
value of 'maxinfo' to 0 when nvcpupids was 0, so the error reporting
would end up being skipped.

This lead to 'virsh vcpuinfo <dom>' just returning an empty list
instead of giving the user a clear error.

(cherry picked from commit 9358b63a0dfff6bc5a62698ea45d4fb5db91fa47)
src/qemu/qemu_driver.c