|
@@ -880,8 +880,8 @@ static void block_save_pending(QEMUFile *f, void *opaque, uint64_t max_size,
|
|
blk_mig_unlock();
|
|
blk_mig_unlock();
|
|
|
|
|
|
/* Report at least one block pending during bulk phase */
|
|
/* Report at least one block pending during bulk phase */
|
|
- if (pending <= max_size && !block_mig_state.bulk_completed) {
|
|
|
|
- pending = max_size + BLK_MIG_BLOCK_SIZE;
|
|
|
|
|
|
+ if (!pending && !block_mig_state.bulk_completed) {
|
|
|
|
+ pending = BLK_MIG_BLOCK_SIZE;
|
|
}
|
|
}
|
|
|
|
|
|
trace_migration_block_save_pending(pending);
|
|
trace_migration_block_save_pending(pending);
|