[libvirt] [PATCH 3/4] libxl: acquire job though begin phase only

Eric Blake eblake at redhat.com
Tue Jul 8 22:03:27 UTC 2014


On 07/08/2014 03:52 PM, Jim Fehlig wrote:
> 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.
> 
> Signed-off-by: Jim Fehlig <jfehlig at suse.com>
> ---
>  src/libxl/libxl_driver.c    |  5 +----
>  src/libxl/libxl_migration.c | 16 ++++------------
>  2 files changed, 5 insertions(+), 16 deletions(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140708/37229d00/attachment-0001.sig>


More information about the libvir-list mailing list