migration queue
Hi Anthony
Please apply.
Brown paper bug where we are adding total size in each iteration, and not the real transmitted value.
Thanks, Juan.
The following changes since commit 394cfa39ba24dd838ace1308ae24961243947fb8:
Merge remote-tracking branch 'quintela/migration.next' into staging (2013-11-19 13:03:06 -0800)
are available in the git repository at:
git://github.com/juanquintela/qemu.git migration.next
for you to fetch changes up to 8e86729a0e83b557c22808a2337252c969ca3986:
The calculation of bytes_xfer in qemu_put_buffer() is wrong (2013-11-20 12:16:04 +0100)
----------------------------------------------------------------
Wangting (Kathy) (1):
The calculation of bytes_xfer in qemu_put_buffer() is wrong
savevm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH 1/1 The calculation of bytes_xfer in qemu_put_buffer() is wrong
From: "Wangting (Kathy)" <[email protected]>
In qemu_put_buffer(), bytes_xfer += size is wrong, it will be more than expected, and should be bytes_xfer += l.
--- savevm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
savevm.c +1 -1
@@ -794,7 +794,7 @@ void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, int size)if (l > size) l = size;memcpy (f->buf + f->buf_index, buf, l); - f->bytes_xfer += size; + f->bytes_xfer += l;if (f->ops->writev_buffer) {add_to_iovec (f, f->buf + f->buf_index, l); }
Signature · 1 line
1.8.3.1
Re: [Qemu-devel] [PATCH] The calculation of bytes_xfer in qemu_put_buffer() is wrong
Quoted 17 lines · Juan Quintela
From: "Wangting (Kathy)" <[email protected]>
In
qemu_put_buffer(),bytes_xfer+= size is wrong, it will be more than expected, and should bebytes_xfer+= l.Signed-off-by zhangmin <[email protected]>Signed-off-by Juan Quintela <[email protected]>--- savevm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)savevm.c +0
-0
savevm.c void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, int size) · line 800
Quoted 8 lines
savevm.c +1
-1@@ -794,7 +794,7 @@ void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, int size)if (l > size) l = size;memcpy (f->buf + f->buf_index, buf, l); - f->bytes_xfer += size; + f->bytes_xfer += l;if (f->ops->writev_buffer) {add_to_iovec (f, f->buf + f->buf_index, l); }