mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
qemuMigrationSrcBegin: Drop disk refresh step
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 <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user