diff --git a/migration/block.c b/migration/block.c index 4026b73f75..867901d2b1 100644 --- a/migration/block.c +++ b/migration/block.c @@ -415,7 +415,10 @@ static int init_blk_migration(QEMUFile *f) } sectors = bdrv_nb_sectors(bs); - if (sectors <= 0) { + if (sectors == 0) { + continue; + } + if (sectors < 0) { ret = sectors; bdrv_next_cleanup(&it); goto out;