提交 b7a948be 编写于 作者: J Jiri Denemark

qemu: Pass async job to qemuProcessInit

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 bf657dff
......@@ -3462,7 +3462,8 @@ qemuMigrationPrepareAny(virQEMUDriverPtr driver,
goto stopjob;
}
if (qemuProcessInit(driver, vm, true, false) < 0)
if (qemuProcessInit(driver, vm, QEMU_ASYNC_JOB_MIGRATION_IN,
true, false) < 0)
goto stopjob;
stopProcess = true;
......
......@@ -4325,6 +4325,7 @@ qemuProcessStartValidate(virDomainDefPtr def,
int
qemuProcessInit(virQEMUDriverPtr driver,
virDomainObjPtr vm,
qemuDomainAsyncJob asyncJob ATTRIBUTE_UNUSED,
bool migration,
bool snap)
{
......@@ -5318,7 +5319,7 @@ qemuProcessStart(virConnectPtr conn,
VIR_QEMU_PROCESS_START_PAUSED |
VIR_QEMU_PROCESS_START_AUTODESTROY, cleanup);
if (qemuProcessInit(driver, vm, !!migrateFrom, !!snapshot) < 0)
if (qemuProcessInit(driver, vm, asyncJob, !!migrateFrom, !!snapshot) < 0)
goto cleanup;
if (migrateFrom) {
......
......@@ -89,6 +89,7 @@ int qemuProcessStartValidate(virDomainDefPtr def,
int qemuProcessInit(virQEMUDriverPtr driver,
virDomainObjPtr vm,
qemuDomainAsyncJob asyncJob,
bool migration,
bool snap);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册