diff options
Diffstat (limited to 'block-migration.c')
-rw-r--r-- | block-migration.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block-migration.c b/block-migration.c index 713a8e36e1..fc4ef93ea2 100644 --- a/block-migration.c +++ b/block-migration.c @@ -780,7 +780,8 @@ static int block_load(QEMUFile *f, void *opaque, int version_id) } if (flags & BLK_MIG_FLAG_ZERO_BLOCK) { - ret = bdrv_write_zeroes(bs, addr, nr_sectors, 0); + ret = bdrv_write_zeroes(bs, addr, nr_sectors, + BDRV_REQ_MAY_UNMAP); } else { buf = g_malloc(BLOCK_SIZE); qemu_get_buffer(f, buf, BLOCK_SIZE); |