]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/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 10:02:50 +0000 (10:02 +0000)
commit9358b63a0dfff6bc5a62698ea45d4fb5db91fa47
tree6ab4f7d5f4c6973225933d3cd150e3c9b5cc529c
parenta103bb105c0c189c3973311ff1826972b5bc6ad6
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.
src/qemu/qemu_driver.c