disable drive-mirror when iothread is enabled

drive-mirror is not working with qemu 2.6 when iothread is enabled.

with virtio-blk : mirror is working, but block-job-completed crash the vm
with virtio-scsi : mirror hang at start.

This should be fixed in qemu 2.7

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2016-08-20 10:02:29 +02:00 committed by Wolfgang Bumiller
parent aaff69ad50
commit 2af848a2da

View File

@ -5761,6 +5761,9 @@ sub clone_disk {
if (!$running || $snapname) {
qemu_img_convert($drive->{file}, $newvolid, $size, $snapname, $sparseinit);
} else {
#qemu 2.6
die "drive-mirror is not working currently when iothread is enabled" if $drive->{iothread};
qemu_drive_mirror($vmid, $drivename, $newvolid, $newvmid, $sparseinit);
}
}