[Libvir] [PATCH] Implement SetVcpus and DomainGetMaxVcpus for qemu

Cole Robinson crobinso at redhat.com
Tue May 6 16:35:12 UTC 2008


Cole Robinson wrote:
> The attached patch fills in two of the vcpu functions for the qemu driver:
> 
> virDomainSetVcpus : set the number of vcpus the domain can use
> virDomainGetMaxVcpus : max number of vcpus that can be assigned to the domain.
> 

Updated patch. Fixes the issues pointed out by Jim and Rich. I also realized
I was passing the incorrect value to qemudMaxVCPUS, so to help fix this I added
a function to qemu_conf.c to translate a domain's virtType value to the 
corresponding string.

Any feedback is appreciated.

Thanks,
Cole

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-qemu-vcpu-2-patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080506/c1adc651/attachment-0001.ksh>


More information about the libvir-list mailing list