From e06c1fa7ee126e85f703db720a7043fdb5348aff Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 19 Jul 2022 18:08:14 +0200 Subject: [PATCH] qemu: migration: Assume support for QEMU_CAPS_BLOCKDEV_DEL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Pavel Hrdina Reviewed-by: Ján Tomko --- src/qemu/qemu_migration.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 8da854a7ce..4587701533 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -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,