Hide Forgot
If the guest is already assigned with maxmimum cpus then if the user tries to assign to assign the same cpu then the libvirt should be handle it in a better way. [root@phx2 qemu]# virsh vcpucount RHEL_WORKING maximum config 20 maximum live 20 current config 9 current live 20 [root@phx2 qemu]# virsh setvcpus RHEL_WORKING 20 [root@phx2 qemu]# echo $? 0 [root@phx2 qemu]# virsh vcpucount RHEL_WORKING maximum config 20 maximum live 20 current config 9 current live 20 [root@phx2 qemu]# virsh setvcpus RHEL_WORKING 20 --live [root@phx2 qemu]# echo $? 0 [root@phx2 qemu]#
It should throw error or message saying that the guest is allocated with maximum number of cpus.
The function sets the CPU count to the amount requested by the user. If the requested value is same as the previously used value, the semantics of the "set" operation are to keep the value and return success. As this behaves as it was originally intended, I'm closing this as NOTABUG.