[libvirt PATCH 58/80] qemu: Implement VIR_MIGRATE_POSTCOPY_RESUME for Perform phase

Peter Krempa pkrempa at redhat.com
Thu May 12 12:34:21 UTC 2022


On Tue, May 10, 2022 at 17:21:19 +0200, Jiri Denemark wrote:
> It just calls migrate QMP command with resume=true without having to
> worry about migration capabilities or parameters, storage migration,
> etc. since everything has already been done in the normal Perform phase.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/qemu/qemu_migration.c | 110 ++++++++++++++++++++++++++++++++++++--
>  1 file changed, 106 insertions(+), 4 deletions(-)
> 
> diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
> index 30c8dbd954..29be797d78 100644
> --- a/src/qemu/qemu_migration.c
> +++ b/src/qemu/qemu_migration.c
> @@ -4857,6 +4857,51 @@ qemuMigrationSrcRun(virQEMUDriver *driver,
>      goto error;
>  }
>  
> +
> +static int
> +qemuMigrationSrcResume(virQEMUDriver *driver,

'driver' is redundant.

> +                       virDomainObj *vm,
> +                       const char *cookiein,

Reviewed-by: Peter Krempa <pkrempa at redhat.com>


More information about the libvir-list mailing list