aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-11-18 11:48:39 +0000
committerJuan Quintela <quintela@redhat.com>2015-11-19 11:49:53 +0100
commit84e7b80a05c0c44b90533c6cd2f1db5c932ccf77 (patch)
treeffd831d6674f4c85384b593c13df1069221843c5
parent8f280309030331a912fd8924c129d8bd59e1bdc7 (diff)
Set last_sent_block
In a82d593b61054b3dea43 I accidentally removed the setting of last_sent_block, put it back. Symptoms: Multithreaded compression only uses one thread. Migration is a bit less efficient since it won't use 'cont' flags. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Fixes: a82d593b61054b3dea43 Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r--migration/ram.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/ram.c b/migration/ram.c
index 7f32696d79..1eb155aedd 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -1249,6 +1249,7 @@ static int ram_save_target_page(MigrationState *ms, QEMUFile *f,
if (unsentmap) {
clear_bit(dirty_ram_abs >> TARGET_PAGE_BITS, unsentmap);
}
+ last_sent_block = block;
}
return res;