]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Avoid overflow when setting migration speed
authorJiri Denemark <jdenemar@redhat.com>
Fri, 11 Apr 2014 09:24:51 +0000 (11:24 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 14 Apr 2014 11:42:48 +0000 (13:42 +0200)
commitc4206d7c7e2c82bcdabd8a7548e14c48cdab4e14
tree87097ec5a00e71cd86fdd7c977bfec4b7f20f00c
parente0292e0c2ac4ca99bc7a93bc565a0d1cef40abdf
qemu: Avoid overflow when setting migration speed

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@redhat.com>
src/qemu/qemu_monitor.c