]> Git Repo - qemu.git/commit - migration/ram.c
migration/xbzrle: update cache and current_data in one place
authorWei Yang <[email protected]>
Mon, 10 Jun 2019 00:41:59 +0000 (08:41 +0800)
committerJuan Quintela <[email protected]>
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 <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Message-Id: <20190610004159[email protected]>
Signed-off-by: Juan Quintela <[email protected]>
migration/ram.c
This page took 0.025643 seconds and 4 git commands to generate.