Re: [Qemu-devel] [PATCH] The calculation of bytes_xfer in qemu_put_buffer() is wrong

2013-11-20 Thread Orit Wasserman
On 11/20/2013 01:26 PM, Juan Quintela wrote: From: "Wangting (Kathy)" In qemu_put_buffer(), bytes_xfer += size is wrong, it will be more than expected, and should be bytes_xfer += l. Signed-off-by: zhangmin Signed-off-by: Juan Quintela --- savevm.c | 2 +- 1 file changed, 1 insertion(+),

Re: [Qemu-devel] [PATCH] the calculation of bytes_xfer in qemu_put_buffer() is wrong

2013-11-20 Thread Juan Quintela
"Wangting (Kathy)" wrote: > In qemu_put_buffer(), bytes_xfer += size is wrong, it will be more > than expected, and should be bytes_xfer += l. > > Signed-off-by: zhangmin > Good spot. Applied and sent pull request to Anthony.

[Qemu-devel] [PATCH] The calculation of bytes_xfer in qemu_put_buffer() is wrong

2013-11-20 Thread Juan Quintela
From: "Wangting (Kathy)" In qemu_put_buffer(), bytes_xfer += size is wrong, it will be more than expected, and should be bytes_xfer += l. Signed-off-by: zhangmin Signed-off-by: Juan Quintela --- savevm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/savevm.c b/savevm.c i

Re: [Qemu-devel] [PATCH] the calculation of bytes_xfer in qemu_put_buffer() is wrong

2013-11-19 Thread Paolo Bonzini
Il 19/11/2013 06:53, Wangting (Kathy) ha scritto: > In qemu_put_buffer(), bytes_xfer += size is wrong,it will be more than > expected,and should be bytes_xfer += l. > > Signed-off-by: zhangmin > --- > savevm.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/savevm.c

[Qemu-devel] [PATCH] the calculation of bytes_xfer in qemu_put_buffer() is wrong

2013-11-19 Thread Wangting (Kathy)
In qemu_put_buffer(), bytes_xfer += size is wrong, it will be more than expected, and should be bytes_xfer += l. Signed-off-by: zhangmin mailto:zhangm...@huawei.com>> --- savevm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/savevm.c b/savevm.c index 2f631d4..3f912dd 1