]> Git Repo - qemu.git/commitdiff
migration: fix live migration failure with compression
authorLiang Li <[email protected]>
Tue, 9 Aug 2016 00:22:26 +0000 (08:22 +0800)
committerAmit Shah <[email protected]>
Thu, 11 Aug 2016 11:29:53 +0000 (16:59 +0530)
Because of commit 11808bb0c422, which remove some condition checks
of 'f->ops->writev_buffer', 'qemu_put_qemu_file' should be enhanced
to clear the 'f_src->iovcnt', or 'f_src->iovcnt' may exceed the
MAX_IOV_SIZE which will break live migration. This should be fixed.

Signed-off-by: Liang Li <[email protected]>
Reported-by: Jinshi Zhang <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Message-Id: <1470702146[email protected]>
Signed-off-by: Amit Shah <[email protected]>
migration/qemu-file.c

index bbc565eb53cbe6ac4e58fd1d149d0d38e058cb0f..e9fae3115882aca356971032602304cfed580deb 100644 (file)
@@ -668,6 +668,7 @@ int qemu_put_qemu_file(QEMUFile *f_des, QEMUFile *f_src)
         len = f_src->buf_index;
         qemu_put_buffer(f_des, f_src->buf, f_src->buf_index);
         f_src->buf_index = 0;
+        f_src->iovcnt = 0;
     }
     return len;
 }
This page took 0.026853 seconds and 4 git commands to generate.