Commit 84e7b80a authored by Dr. David Alan Gilbert's avatar Dr. David Alan Gilbert Committed by Juan Quintela
Browse files

Set last_sent_block



In a82d593b 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: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
Fixes: a82d593b
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent 8f280309
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;