[libvirt] [PATCH] qemu: Fix retrieval of maximum number of vCPUs on KVM hosts

Eric Blake eblake at redhat.com
Mon Mar 11 16:56:35 UTC 2013


On 03/11/2013 07:59 AM, Peter Krempa wrote:
> The detection of the maximum number of cpus used incorrect ioctl
> argument value. This flaw caused that on kvm hosts this returns always
> "160" as the maximum. This is just a recommended maximum value. The real
> value is higher than that.
> 
> This patch tweaks the detection function to behave as described by the
> kernel docs:
> 
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/virtual/kvm/api.txt?id=refs/tags/v3.9-rc2#n199
> ---
>  src/qemu/qemu_driver.c | 29 +++++++++++++++++++----------
>  1 file changed, 19 insertions(+), 10 deletions(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130311/f2e322a5/attachment-0001.sig>


More information about the libvir-list mailing list