Re: [PATCH 1/2] libxl: Don't attempt to resume domain on canceled migration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 12, 2023 at 03:26:14PM -0600, Jim Fehlig wrote:
> For unknown reasons, the libxl driver attempts to resume a domain in the
> confirm phase when a migration operation has been canceled. This has shown
> to be problematic when simulating scenarios that result in a canceled
> migration. In all scenarios, the domain was in a running state when entering
> libxlDomainMigrationSrcConfirm, causing the call to libxl_domain_resume to
> fail. Making matters worse, the domain state is changed to paused when in
> fact it's running. And finally, libxlDomainMigrationSrcConfirm incorrectly
> returns an error.
> 
> Remove this incorrect logic from libxlDomainMigrationSrcConfirm. On a
> canceled migration it's sufficient to resume the lock process that was
> paused in the perform phase.
> 
> Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxx>
> ---
>  src/libxl/libxl_migration.c | 16 +---------------
>  1 file changed, 1 insertion(+), 15 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux