Re: [Qemu-devel] [PATCH 2/2] migration: Fix calculation of bytes_transferred

2010-06-01 Thread Anthony Liguori
On 05/12/2010 08:12 AM, Pierre Riteau wrote: When a page with all identical bytes is transferred, it is counted as a full page (TARGET_PAGE_SIZE) although only one byte is actually sent. Fix this by changing ram_save_block() to return the number of bytes sent instead of a boolean value. This make

Re: [Qemu-devel] [PATCH 2/2] migration: Fix calculation of bytes_transferred

2010-05-19 Thread Pierre Riteau
Anyone interested by this diff? On 12 mai 2010, at 15:12, Pierre Riteau wrote: > When a page with all identical bytes is transferred, it is counted > as a full page (TARGET_PAGE_SIZE) although only one byte is actually > sent. Fix this by changing ram_save_block() to return the number of > bytes

[Qemu-devel] [PATCH 2/2] migration: Fix calculation of bytes_transferred

2010-05-12 Thread Pierre Riteau
When a page with all identical bytes is transferred, it is counted as a full page (TARGET_PAGE_SIZE) although only one byte is actually sent. Fix this by changing ram_save_block() to return the number of bytes sent instead of a boolean value. This makes bandwidth estimation, and consequently downti