migration: fix counting xbzrle cache_miss_rate
commite0e7a45d7fa64563191d3723fc4a4570122e6e42
authorXiao Guangrong <xiaoguangrong@tencent.com>
Mon, 4 Jun 2018 09:55:11 +0000 (4 17:55 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 15 Jun 2018 13:40:56 +0000 (15 14:40 +0100)
tree368877ce9bc5b038496a4f5cd78e43fcc5a6ca55
parenta36f6ff46f115672cf86d0e1e7cdb1c2fa4d304b
migration: fix counting xbzrle cache_miss_rate

Sync up xbzrle_cache_miss_prev only after migration iteration goes
forward

Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Message-Id: <20180604095520.8563-4-xiaoguangrong@tencent.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c