[libvirt] [PATCH] qemu: Avoid overflow when setting migration speed

Jiri Denemark jdenemar at redhat.com
Mon Apr 14 12:37:36 UTC 2014


On Fri, Apr 11, 2014 at 08:31:51 -0600, Eric Blake wrote:
> On 04/11/2014 04:52 AM, Jiri Denemark wrote:
> > When passing migration bandwidth to QEMU, we multiply it by 1024 * 1024
> > to convert the speed to B/s and the result still needs to fit in
> > int64_t.
> > 
> > https://bugzilla.redhat.com/show_bug.cgi?id=1083483
> > 
> > Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> > ---
> >  src/qemu/qemu_monitor.c | 7 +++++++
> >  1 file changed, 7 insertions(+)
> 
> ACK

Thanks, pushed.

Jirka




More information about the libvir-list mailing list