qemu: Pass async job to qemuProcessInit

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2016-01-28 15:56:07 +01:00
parent bf657dffb8
commit b7a948be01
3 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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) {

View File

@ -89,6 +89,7 @@ int qemuProcessStartValidate(virDomainDefPtr def,
int qemuProcessInit(virQEMUDriverPtr driver,
virDomainObjPtr vm,
qemuDomainAsyncJob asyncJob,
bool migration,
bool snap);