]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_migration: Acquire correct job in qemuMigrationSrcIsAllowed
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 22 Jul 2022 10:20:04 +0000 (12:20 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 22 Jul 2022 10:47:32 +0000 (12:47 +0200)
commit69e0e33873f1aec55df77f12fb0197d50dca3319
tree803452691931286f4829b39468b125dd2daf98ed
parent1122b162760f855ffc6d7e14fa5412f336485eaf
qemu_migration: Acquire correct job in qemuMigrationSrcIsAllowed

Commit 62627524607f added the acquiring of a job, but it is not always
VIR_ASYNC_JOB_MIGRATION_OUT, so the code fails when doing save or anything else.
Correct the async job by passing it from the caller as another parameter.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration.h
src/qemu/qemu_snapshot.c