From: Peter Krempa <[email protected]>

Since 'qemuProcessRefreshDiskProps' doesn't remove the source since we
switched to blockdev mode, we don't need to update disk state at the
beginning of migration.

Signed-off-by: Peter Krempa <[email protected]>
---
 src/qemu/qemu_migration.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index b4d2e27370..88db5e93fa 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -3016,7 +3016,6 @@ qemuMigrationSrcBegin(virConnectPtr conn,
     g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);
     g_autofree char *xml = NULL;
     char *ret = NULL;
-    virDomainAsyncJob asyncJob;

     if (cfg->migrateTLSForce &&
         !(flags & VIR_MIGRATE_TUNNELLED) &&
@@ -3035,14 +3034,12 @@ qemuMigrationSrcBegin(virConnectPtr conn,
     if ((flags & VIR_MIGRATE_CHANGE_PROTECTION)) {
         if (qemuMigrationJobStart(vm, VIR_ASYNC_JOB_MIGRATION_OUT, flags) < 0)
             goto cleanup;
-        asyncJob = VIR_ASYNC_JOB_MIGRATION_OUT;
     } else {
         if (!qemuMigrationJobIsAllowed(vm))
             goto cleanup;

         if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
             goto cleanup;
-        asyncJob = VIR_ASYNC_JOB_NONE;
     }

     qemuMigrationSrcStoreDomainState(vm);
@@ -3050,13 +3047,6 @@ qemuMigrationSrcBegin(virConnectPtr conn,
     if (!(flags & VIR_MIGRATE_OFFLINE) && virDomainObjCheckActive(vm) < 0)
         goto endjob;

-    /* Check if there is any ejected media.
-     * We don't want to require them on the destination.
-     */
-    if (!(flags & VIR_MIGRATE_OFFLINE) &&
-        qemuProcessRefreshDisks(vm, asyncJob) < 0)
-        goto endjob;
-
     if (!(xml = qemuMigrationSrcBeginPhase(driver, vm, xmlin, dname,
                                            cookieout, cookieoutlen,
                                            migrate_disks,
-- 
2.53.0

Reply via email to