Commit b22ff1fb authored by Juan Quintela's avatar Juan Quintela
Browse files

migration: Only go to the iterate stage if there is anything to send

Signed-off-by: default avatarOrit Wasserman <>
Signed-off-by: default avatarJuan Quintela <>
Reviewed-by: default avatarReviewed-by: Eric Blake <>
Reviewed-by: default avatarPaolo Bonzini <>
parent c369f40d
......@@ -698,7 +698,7 @@ static void *buffered_file_thread(void *opaque)
pending_size = qemu_savevm_state_pending(s->file, max_size);
DPRINTF("pending size %lu max %lu\n", pending_size, max_size);
if (pending_size >= max_size) {
if (pending_size && pending_size >= max_size) {
ret = qemu_savevm_state_iterate(s->file);
if (ret < 0) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment