VIR_DEBUG("Received no lockstate");
}
- if (incoming->deferredURI &&
- qemuMigrationDstRun(driver, vm, incoming->deferredURI,
+ if (qemuMigrationDstRun(driver, vm, incoming->uri,
VIR_ASYNC_JOB_MIGRATION_IN) < 0)
goto stopjob;
return;
g_free(inc->address);
- g_free(inc->launchURI);
- g_free(inc->deferredURI);
+ g_free(inc->uri);
g_free(inc);
}
inc->address = g_strdup(listenAddress);
- inc->launchURI = qemuMigrationDstGetURI(migrateFrom, fd);
- if (!inc->launchURI)
+ inc->uri = qemuMigrationDstGetURI(migrateFrom, fd);
+ if (!inc->uri)
goto error;
- if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_INCOMING_DEFER)) {
- inc->deferredURI = inc->launchURI;
- inc->launchURI = g_strdup("defer");
- }
-
inc->fd = fd;
inc->path = path;
unsigned long long maxMemLock = 0;
VIR_DEBUG("conn=%p driver=%p vm=%p name=%s if=%d asyncJob=%d "
- "incoming.launchURI=%s incoming.deferredURI=%s "
+ "incoming.uri=%s "
"incoming.fd=%d incoming.path=%s "
"snapshot=%p vmop=%d flags=0x%x",
conn, driver, vm, vm->def->name, vm->def->id, asyncJob,
- NULLSTR(incoming ? incoming->launchURI : NULL),
- NULLSTR(incoming ? incoming->deferredURI : NULL),
+ NULLSTR(incoming ? incoming->uri : NULL),
incoming ? incoming->fd : -1,
NULLSTR(incoming ? incoming->path : NULL),
snapshot, vmop, flags);
VIR_DEBUG("Building emulator command line");
if (!(cmd = qemuBuildCommandLine(driver,
vm,
- incoming ? incoming->launchURI : NULL,
+ incoming ? "defer" : NULL,
snapshot, vmop,
false,
qemuCheckFips(vm),
relabel = true;
if (incoming) {
- if (incoming->deferredURI &&
- qemuMigrationDstRun(driver, vm, incoming->deferredURI, asyncJob) < 0)
+ if (qemuMigrationDstRun(driver, vm, incoming->uri, asyncJob) < 0)
goto stop;
} else {
/* Refresh state of devices from QEMU. During migration this happens
typedef struct _qemuProcessIncomingDef qemuProcessIncomingDef;
struct _qemuProcessIncomingDef {
char *address; /* address where QEMU is supposed to listen */
- char *launchURI; /* used as a parameter for -incoming command line option */
- char *deferredURI; /* used when calling migrate-incoming QMP command */
+ char *uri; /* used when calling migrate-incoming QMP command */
int fd; /* for fd:N URI */
const char *path; /* path associated with fd */
};