mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
qemu: migration: Assume support for QEMU_CAPS_BLOCKDEV_DEL
The migration code was using few blockdev bits before blockdev was fully integrated to allow TLS with NBD. Since we now always use blockdev we can remove the check. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
9f15b8fb18
commit
e06c1fa7ee
@ -4777,14 +4777,6 @@ qemuMigrationSrcRun(virQEMUDriver *driver,
|
||||
host = spec->dest.host.name;
|
||||
}
|
||||
|
||||
/* Allow migration with TLS only when we also support TLS for the NBD connection */
|
||||
if (flags & VIR_MIGRATE_TLS &&
|
||||
!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV_DEL)) {
|
||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
|
||||
_("NBD migration with TLS is not supported"));
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (qemuMigrationSrcNBDStorageCopy(driver, vm, mig,
|
||||
host,
|
||||
priv->migMaxBandwidth,
|
||||
|
Loading…
x
Reference in New Issue
Block a user