mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: Pass async job to qemuProcessInit
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
bf657dffb8
commit
b7a948be01
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user