[libvirt] [PATCH] Determine kvm max vcpus via version number

Cole Robinson crobinso at redhat.com
Fri Sep 5 16:25:16 UTC 2008


The attached patch is a slimmed down version of a patch
I posted a while back. This expands qemu help message
parsing to look for a kvm version number, which can be
used to determine maximum supported vcpus.

A kvmVersion field is added to the qemu_driver structure,
and a check to determine the version is added to the
libvirtd start up routine. If the kvm version isn't found
(say if kvm isn't installed), kvmVersion is set to 0.

This is against Guido Gunther's patch "maxVCPU runtime 
detection": his method takes precendence in the code
if it's available.

Comments welcome.

Thanks,
Cole
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-kvm-check-version-patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080905/1d88c085/attachment-0001.ksh>


More information about the libvir-list mailing list