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

Cole Robinson crobinso at redhat.com
Mon Apr 28 17:46:28 UTC 2008

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.

Code change is only in qemu_driver, as the backend stuff was already in place.
I also edited qemudGetMaxVcpus to ignore case when checking the passed OS
type, since it wasn't matching the returned results of qemudDomainGetOSType.

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

More information about the libvir-list mailing list