]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Fix rate limit
authorMatthew Garrett <matthew.garrett@nebula.com>
Mon, 25 Nov 2013 19:42:43 +0000 (14:42 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 03:59:18 +0000 (21:59 -0600)
commitf227ed1842180b0faeef0b4f9cde184cfd46cafc
treeb27cd2f66adc0c61909ee2a5d31c5254a7d490db
parent2dc79753001520d94ed0373357a1be88a02a015a
migration: Fix rate limit

The migration thread appears to want to allow writeout to occur at full
speed rather than being rate limited during completion of state saving,
but sets the limit to INT_MAX when xfer_limit is INT64_MAX. This causes
problems if there's more than 2GB of state left to save at this point. It
probably ought to just be INT64_MAX instead.

Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
(cherry picked from commit 40596834c0d57a223124a956ccbe39dfeadc9f0e)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
migration.c