Re: [PATCH] Fix default migration speed in qemu driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Blake wrote:
> On 12/15/2011 11:36 AM, Jim Fehlig wrote:
>   
>> In commit 6f84e110 I mistakenly set default migration speed to
>> 33554432 Mb!  The units of migMaxBandwidth is Mb, with conversion
>> handled in qemuMonitor{JSON,Text}SetMigrationSpeed().
>>     
>
> Oh my - sorry I missed that when acking the original series.
>
>   
>> Also, remove definition of QEMU_DOMAIN_FILE_MIG_BANDWIDTH_MAX since
>> it is no longer used after reverting commit ef1065cf.
>>     
>
> It should have been pretty obvious - QEMU_DOMAIN_FILE_MIG_BANDWIDTH_MAX
> was correctly dividing by 1MiB, to avoid overflow.  Oh well, better late
> than never.
>
>   
>> ---
>>  src/qemu/qemu_domain.h |    9 +--------
>>  1 files changed, 1 insertions(+), 8 deletions(-)
>>
>> diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h
>> index 35f9440..f40fa09 100644
>> --- a/src/qemu/qemu_domain.h
>> +++ b/src/qemu/qemu_domain.h
>> @@ -36,14 +36,7 @@
>>       (1 << VIR_DOMAIN_VIRT_KVM) |      \
>>       (1 << VIR_DOMAIN_VIRT_XEN))
>>  
>> -# define QEMU_DOMAIN_DEFAULT_MIG_BANDWIDTH_MAX (32 << 20)
>> -# if ULONG_MAX == 4294967295
>> -/* Qemu has a 64-bit limit, but we are limited by our historical choice of
>> - * representing bandwidth in a long instead of a 64-bit int.  */
>> -#  define QEMU_DOMAIN_FILE_MIG_BANDWIDTH_MAX    ULONG_MAX
>> -# else
>> -#  define QEMU_DOMAIN_FILE_MIG_BANDWIDTH_MAX    (INT64_MAX / (1024 * 1024))
>> -# endif
>> +# define QEMU_DOMAIN_DEFAULT_MIG_BANDWIDTH_MAX 32
>>     
>
> ACK.
>   

Thanks, pushed.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]