<filename>test_libvirt_config_guest_vcpu.py
from nova.virt.libvirt import config as vconfig

guest = vconfig.LibvirtConfigGuest()
guest.vcpus = 4
print guest.to_xml()
<filename>test_libvirt_config_guest_vcpu.py
from nova.virt.libvirt import config as vconfig

guest = vconfig.LibvirtConfigGuest()
guest.vcpus = 4
print guest.to_xml()