migration: refine ram_save_compressed_page
commitfc50438ed0b7106542048d70686ee4b1c340ea49
authorLiang Li <liang.z.li@intel.com>
Thu, 5 May 2016 07:32:55 +0000 (5 15:32 +0800)
committerAmit Shah <amit.shah@redhat.com>
Fri, 17 Jun 2016 12:54:21 +0000 (17 18:24 +0530)
treee9110d252fd8bdf4c2469854fe3b9398b65688d9
parentb3be28969b797b27d7f7f806827e9898e4ee08f0
migration: refine ram_save_compressed_page

Use qemu_put_compression_data to do the compression directly
instead of using do_compress_ram_page, avoid some data copy.
very small improvement, at the same time, add code to check
if the compression is successful.

Signed-off-by: Liang Li <liang.z.li@intel.com>
Message-Id: <1462433579-13691-6-git-send-email-liang.z.li@intel.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
migration/ram.c