]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Kill QEMU process if Prepare phase fails
authorJiri Denemark <jdenemar@redhat.com>
Tue, 10 Nov 2015 11:41:01 +0000 (12:41 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 25 Nov 2015 14:27:31 +0000 (15:27 +0100)
commit95e2415b95fdf9619b0444b053e84b5a6e4e7b20
tree6ddf25b72442baacd44f0f35fc23ce03776684de
parent674afcb09e3d33500cfbbcf870ebf92cb99ecfa3
qemu: Kill QEMU process if Prepare phase fails

Some failure paths in qemuMigrationPrepareAny forgot to kill the just
started QEMU process. This patch fixes this by combining 'stop' and
'endjob' label into a new label 'stopjob'. This name was chosen to avoid
confusion with the most common semantics of 'endjob'. Normally, 'endjob'
is always called at the end of an API to stop the job we entered at the
beginning. In qemuMigrationPrepareAny we only want to stop the job in
failure path; on success we need to carry the job over to the Finish
phase.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c