[Qemu-devel] [PATCH 2/2] migration: code clean up.

2015-12-03 Thread Liang Li
Use qemu_put_compression_data to do the compression directly instead of using do_compress_ram_page, avoid some data copy. very small improvement, but the code looks better. Signed-off-by: Liang Li --- migration/ram.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) di

[Qemu-devel] [PATCH 2/2] migration: code clean up.

2015-12-03 Thread Liang Li
Use qemu_put_compression_data to do the compression directly instead of using do_compress_ram_page, avoid some data copy. very small improvement, but the code looks better. Signed-off-by: Liang Li --- migration/ram.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) di