]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Improve error when setting invalid count of vcpus via agent
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Dec 2013 16:47:14 +0000 (17:47 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Dec 2013 10:09:04 +0000 (11:09 +0100)
commit34b8449027adc44bd38151f384f5a5cdd64d996f
treebf416eb46a49442802e6acfd16cabeffc15054ff
parentbe904e4eeb83cb5513af8dad01fdfbb924f87bb1
qemu: Improve error when setting invalid count of vcpus via agent

https://bugzilla.redhat.com/show_bug.cgi?id=1035108

When attempting to enable more vCPUs in the guest than is currently
enabled in the guest but less than the maximum count for the VM we
currently reported an unhelpful message:

 error: internal error: guest agent reports less cpu than requested

This patch changes it to:

 error: invalid argument: requested vcpu count is greater than the count
 of enabled vcpus in the domain: 3 > 2
src/qemu/qemu_driver.c