]> git.proxmox.com Git - mirror_qemu.git/commit
migration/xbzrle: update cache and current_data in one place
authorWei Yang <richardw.yang@linux.intel.com>
Mon, 10 Jun 2019 00:41:59 +0000 (08:41 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jul 2019 13:39:02 +0000 (15:39 +0200)
commitca3538039012258973ab75775109dbe9577097f6
treee142b47f3f757434cc4e32ff22606e618119a06a
parentb6526c4b2122138833dacf7da74caabb84177344
migration/xbzrle: update cache and current_data in one place

When we are not in the last_stage, we need to update the cache if page
is not the same.

Currently this procedure is scattered in two places and mixed with
encoding status check.

This patch extract this general step out to make the code a little bit
easy to read.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190610004159.20966-1-richardw.yang@linux.intel.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c