diff options
author | Juan Quintela <quintela@redhat.com> | 2022-10-03 05:15:56 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2022-11-21 11:58:10 +0100 |
commit | b5280437a7f49cf617cdd99bbbe2c7bd1652408b (patch) | |
tree | 620f33921c4a7af34358efcd7ae747ecf54a69be /migration | |
parent | 6f39c90b86b9d3772779f873ed88aaa75a220aba (diff) | |
download | qemu-b5280437a7f49cf617cdd99bbbe2c7bd1652408b.zip qemu-b5280437a7f49cf617cdd99bbbe2c7bd1652408b.tar.gz qemu-b5280437a7f49cf617cdd99bbbe2c7bd1652408b.tar.bz2 |
migration: Block migration comment or code is wrong
And it appears that what is wrong is the code. During bulk stage we
need to make sure that some block is dirty, but no games with
max_size at all.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migration/block.c b/migration/block.c index 3577c81..4347da1 100644 --- a/migration/block.c +++ b/migration/block.c @@ -880,8 +880,8 @@ static void block_save_pending(QEMUFile *f, void *opaque, uint64_t max_size, blk_mig_unlock(); /* 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); |