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

Daniel Veillard veillard at redhat.com
Sun Sep 7 16:34:48 UTC 2008


On Fri, Sep 05, 2008 at 12:25:16PM -0400, Cole Robinson wrote:
> 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.

  Looks fine to me,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list