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

Peter Krempa pkrempa at redhat.com
Mon Mar 11 17:12:43 UTC 2013


On 03/11/13 17:56, Eric Blake wrote:
> 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.
>

Pushed. Thanks.

Peter




More information about the libvir-list mailing list