Hello,
I'm trying to plug and unplug cpus with a host CentOS 7 on a guest machine with CentOS too. I have created the guest with virt-install command, modified my domxml to have maximum 4 vcpus and updated the current cpu to 2.
After that I open the virsh console, and used command setvcpus to add/remove cpus. I was able to increase the vcpu count until 4 but can't increase it after 4 as it exceeds maximum vcpu count. However when I want to remove vcpus, again by using setvcpus command, I noticed that it's not possbile. I have looked around and found a changelog related to CentOS 6.5 where unplugging was supported. To check that, I have installed CentOS 6.5 on the host machine and tried again and noticed that it worked.