]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: fix job handling across migration phases on dst
authorJim Fehlig <jfehlig@suse.com>
Wed, 29 Aug 2018 17:11:00 +0000 (11:11 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 11 Sep 2018 15:19:31 +0000 (09:19 -0600)
commit0149464afc7100f048a2468e40e84b6a50aeb3a3
treeb86a09826d97e93d84d2e31b1e6f67d1b78547cc
parent47da84e09044e5af914a64469d06adef34279964
libxl: fix job handling across migration phases on dst

The libxlDomainMigrationDst* functions are a bit flawed in their
handling of modify jobs. A job begins when the destination host
begins receiving the incoming VM and ends after the VM is started.
The finish phase contains another BeginJob/EndJob sequence.

This patch changes the logic to begin a job for the incoming VM
in the prepare phase and end the job in the finish phase.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/libxl/libxl_driver.c
src/libxl/libxl_migration.c