Set last_sent_block
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 18 Nov 2015 11:48:39 +0000 (11:48 +0000)
committerJuan Quintela <quintela@redhat.com>
Thu, 19 Nov 2015 10:49:53 +0000 (11:49 +0100)
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>
migration/ram.c

index 7f32696d7988f59ef5131bf546b4e4ff0171cfab..1eb155aedd57035eef2978e496e1ac0444204431 100644 (file)
@@ -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;