]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: acquire job though begin phase only
authorJim Fehlig <jfehlig@suse.com>
Tue, 8 Jul 2014 21:17:58 +0000 (15:17 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 8 Jul 2014 23:14:50 +0000 (17:14 -0600)
commitbab7ad4cebb4bc808ebc77510655d6b71e8e4a17
treee1e43a067d18ab5330527ee854e3fea9973f4f97
parentc4f66bb8bef796357d509960d5bb65153f586a1f
libxl: acquire job though begin phase only

During migration, the libxl driver starts a modify job in the
begin phase, ending the job in the confirm phase.  This is
essentially VIR_MIGRATE_CHANGE_PROTECTION semantics, but the
driver does not support that flag.  Without CHANGE_PROTECTION
support, the job would never be terminated in error conditions
where migrate confirm phase is not executed.  Further attempts
to modify the domain would result in failure to acquire a job
after LIBXL_JOB_WAIT_TIME.

Similar to the qemu driver, end the job in the begin phase.
Protecting the domain object across all phases of migration can
be done in a future patch adding CHANGE_PROTECTION support.
src/libxl/libxl_driver.c
src/libxl/libxl_migration.c