Re: [PATCH 1/6] Added qemu postcopy-active migration status

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

 



On Tue, Sep 23, 2014 at 16:09:56 +0200, Cristian Klein wrote:
> Signed-off-by: Cristian Klein <cristian.klein@xxxxxxxxx>
> ---
>  src/qemu/qemu_migration.c    | 1 +
>  src/qemu/qemu_monitor.c      | 2 +-
>  src/qemu/qemu_monitor.h      | 1 +
>  src/qemu/qemu_monitor_json.c | 3 ++-
>  src/qemu/qemu_monitor_text.c | 3 ++-
>  5 files changed, 7 insertions(+), 3 deletions(-)
> 
...
> diff --git a/src/qemu/qemu_monitor_text.c b/src/qemu/qemu_monitor_text.c
> index 46d2782..a3c8aa5 100644
> --- a/src/qemu/qemu_monitor_text.c
> +++ b/src/qemu/qemu_monitor_text.c
> @@ -1458,7 +1458,8 @@ int qemuMonitorTextGetMigrationStatus(qemuMonitorPtr mon,
>              goto cleanup;
>          }
>  
> -        if (status->status == QEMU_MONITOR_MIGRATION_STATUS_ACTIVE) {
> +        if (status->status == QEMU_MONITOR_MIGRATION_STATUS_ACTIVE ||
> +            status->status == QEMU_MONITOR_MIGRATION_STATUS_POSTCOPY_ACTIVE) {
>              tmp = end + 1;

I don't think we need to change text monitor code since we won't be
talking with HMP to any version of QEMU that supports post-copy
migration. Otherwise the patch is just fine and we just need to wait for
post-copy to land in QEMU.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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]