diff options
-rw-r--r-- | block-migration.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block-migration.c b/block-migration.c index 6ca48f4b3c..ec32ee27cb 100644 --- a/block-migration.c +++ b/block-migration.c @@ -248,6 +248,11 @@ static void init_blk_migration(QEMUFile *f) BlkMigDevState *bmds; BlockDriverState *bs; + block_mig_state.submitted = 0; + block_mig_state.read_done = 0; + block_mig_state.transferred = 0; + block_mig_state.print_completion = 0; + for (bs = bdrv_first; bs != NULL; bs = bs->next) { if (bs->type == BDRV_TYPE_HD) { bmds = qemu_mallocz(sizeof(BlkMigDevState)); |