]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow suspend during live migration
authorJiri Denemark <jdenemar@redhat.com>
Mon, 15 Mar 2010 13:19:00 +0000 (14:19 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 17 Mar 2010 13:38:46 +0000 (14:38 +0100)
commit0c842417ef944e7723f6685f4c060df8d24419fb
tree0fd5f534d17a59cd33d5859367800e311881edd4
parentbe7780b035c19c53127e01ac1902bfd48a1a9f35
Allow suspend during live migration

Currently no command can be sent to a qemu process while another job is
active. This patch adds support for signaling long-running jobs (such as
migration) so that other threads may request predefined operations to be
done during such jobs. Two signals are defined so far:
    - QEMU_JOB_SIGNAL_CANCEL
    - QEMU_JOB_SIGNAL_SUSPEND

The first one is used by qemuDomainAbortJob.

The second one is used by qemudDomainSuspend for suspending a domain
during migration, which allows for changing live migration into offline
migration. However, there is a small issue in the way qemudDomainSuspend
is currently implemented for migrating domains. The API calls returns
immediately after signaling migration job which means it is asynchronous
in this specific case.

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