[libvirt] [PATCH 1/6] Added qemu postcopy-active migration status
Jiri Denemark
jdenemar at redhat.com
Wed Sep 24 10:02:31 UTC 2014
On Tue, Sep 23, 2014 at 16:09:56 +0200, Cristian Klein wrote:
> Signed-off-by: Cristian Klein <cristian.klein at cs.umu.se>
> ---
> 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
More information about the libvir-list
mailing list