[libvirt] [PATCH] qemu: do upfront check for vcpupids being null when querying pinning

Ján Tomko jtomko at redhat.com
Wed Feb 11 09:28:34 UTC 2015


On Tue, Feb 10, 2015 at 04:25:36PM +0000, Daniel P. Berrange wrote:
> 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 | 47 +++++++++++++++++++++++------------------------
>  1 file changed, 23 insertions(+), 24 deletions(-)
> 

ACK

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150211/59b2c104/attachment-0001.sig>


More information about the libvir-list mailing list