|
@@ -142,6 +142,9 @@ static BlockCopyTask *block_copy_task_create(BlockCopyState *s,
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ assert(QEMU_IS_ALIGNED(offset, s->cluster_size));
|
|
|
|
+ bytes = QEMU_ALIGN_UP(bytes, s->cluster_size);
|
|
|
|
+
|
|
/* region is dirty, so no existent tasks possible in it */
|
|
/* region is dirty, so no existent tasks possible in it */
|
|
assert(!find_conflicting_task(s, offset, bytes));
|
|
assert(!find_conflicting_task(s, offset, bytes));
|
|
|
|
|