migration: move calling save_zero_page to the common place
commitd7400a3409982a52ac451cd3ca9caee9db670ca7
authorXiao Guangrong <xiaoguangrong@tencent.com>
Fri, 30 Mar 2018 07:51:26 +0000 (30 15:51 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 25 Apr 2018 17:04:11 +0000 (25 18:04 +0100)
tree986f9cf85caff8eda59a19075ed8bcaa5ad981a3
parenta8ec91f941c5f83123796331c09333d3557eb5fc
migration: move calling save_zero_page to the common place

save_zero_page() is always our first approach to try, move it to
the common place before calling ram_save_compressed_page
and ram_save_page

Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Message-Id: <20180330075128.26919-9-xiaoguangrong@tencent.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c