mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Rename qemuMigrationParamsSet
The new name is qemuMigrationParamsApply and it will soon become the only API which will send all requested migration parameters and capabilities to QEMU. All other qemuMigrationParams* APIs will just operate on the qemuMigrationParams structure. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0beaadfa6e
commit
4bac1879ce
@ -2476,7 +2476,7 @@ qemuMigrationDstPrepareAny(virQEMUDriverPtr driver,
|
|||||||
QEMU_ASYNC_JOB_MIGRATION_IN) < 0)
|
QEMU_ASYNC_JOB_MIGRATION_IN) < 0)
|
||||||
goto stopjob;
|
goto stopjob;
|
||||||
|
|
||||||
if (qemuMigrationParamsSet(driver, vm, QEMU_ASYNC_JOB_MIGRATION_IN,
|
if (qemuMigrationParamsApply(driver, vm, QEMU_ASYNC_JOB_MIGRATION_IN,
|
||||||
migParams) < 0)
|
migParams) < 0)
|
||||||
goto stopjob;
|
goto stopjob;
|
||||||
|
|
||||||
@ -3471,7 +3471,7 @@ qemuMigrationSrcRun(virQEMUDriverPtr driver,
|
|||||||
true, QEMU_ASYNC_JOB_MIGRATION_OUT) < 0)
|
true, QEMU_ASYNC_JOB_MIGRATION_OUT) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (qemuMigrationParamsSet(driver, vm, QEMU_ASYNC_JOB_MIGRATION_OUT,
|
if (qemuMigrationParamsApply(driver, vm, QEMU_ASYNC_JOB_MIGRATION_OUT,
|
||||||
migParams) < 0)
|
migParams) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
@ -108,8 +108,19 @@ qemuMigrationParamsFromFlags(virTypedParameterPtr params,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* qemuMigrationParamsApply
|
||||||
|
* @driver: qemu driver
|
||||||
|
* @vm: domain object
|
||||||
|
* @asyncJob: migration job
|
||||||
|
* @migParams: migration parameters to send to QEMU
|
||||||
|
*
|
||||||
|
* Send all parameters stored in @migParams to QEMU.
|
||||||
|
*
|
||||||
|
* Returns 0 on success, -1 on failure.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
qemuMigrationParamsSet(virQEMUDriverPtr driver,
|
qemuMigrationParamsApply(virQEMUDriverPtr driver,
|
||||||
virDomainObjPtr vm,
|
virDomainObjPtr vm,
|
||||||
int asyncJob,
|
int asyncJob,
|
||||||
qemuMigrationParamsPtr migParams)
|
qemuMigrationParamsPtr migParams)
|
||||||
@ -391,7 +402,7 @@ qemuMigrationParamsReset(virQEMUDriverPtr driver,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (origParams) {
|
if (origParams) {
|
||||||
if (qemuMigrationParamsSet(driver, vm, asyncJob, origParams) < 0)
|
if (qemuMigrationParamsApply(driver, vm, asyncJob, origParams) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
qemuMigrationParamsResetTLS(driver, vm, asyncJob, origParams);
|
qemuMigrationParamsResetTLS(driver, vm, asyncJob, origParams);
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ void
|
|||||||
qemuMigrationParamsFree(qemuMigrationParamsPtr migParams);
|
qemuMigrationParamsFree(qemuMigrationParamsPtr migParams);
|
||||||
|
|
||||||
int
|
int
|
||||||
qemuMigrationParamsSet(virQEMUDriverPtr driver,
|
qemuMigrationParamsApply(virQEMUDriverPtr driver,
|
||||||
virDomainObjPtr vm,
|
virDomainObjPtr vm,
|
||||||
int asyncJob,
|
int asyncJob,
|
||||||
qemuMigrationParamsPtr migParams);
|
qemuMigrationParamsPtr migParams);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user