]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Fix retrieval of maximum number of vCPUs on KVM hosts
authorPeter Krempa <pkrempa@redhat.com>
Mon, 11 Mar 2013 13:50:54 +0000 (14:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 11 Mar 2013 17:01:55 +0000 (18:01 +0100)
commit1715c83b5f4fb2cc1f9f9f2d5e9c2c0414802730
tree8321f303f8198968fc7f4af7658a2b3715a20ff6
parent5c86ace1e79c4d61675cbac6fd45aac54fc16b72
qemu: Fix retrieval of maximum number of vCPUs on KVM hosts

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