]> git.proxmox.com Git - mirror_qemu.git/commit - migration/migration.c
migration: add postcopy total blocktime into query-migrate
authorAlexey Perevalov <a.perevalov@samsung.com>
Thu, 22 Mar 2018 18:17:27 +0000 (21:17 +0300)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 25 Apr 2018 17:02:17 +0000 (18:02 +0100)
commit65ace060455122a461cdc9302238b914084bcd42
tree6376659d7c0f27b6aa1919750180a7bdc68c2651
parent346f3dab04ee2391e521fd276883e63959eb9ea9
migration: add postcopy total blocktime into query-migrate

Postcopy total blocktime is available on destination side only.
But query-migrate was possible only for source. This patch
adds ability to call query-migrate on destination.
To be able to see postcopy blocktime, need to request postcopy-blocktime
capability.

The query-migrate command will show following sample result:
{"return":
    "postcopy-vcpu-blocktime": [115, 100],
    "status": "completed",
    "postcopy-blocktime": 100
}}

postcopy_vcpu_blocktime contains list, where the first item is the first
vCPU in QEMU.

This patch has a drawback, it combines states of incoming and
outgoing migration. Ongoing migration state will overwrite incoming
state. Looks like better to separate query-migrate for incoming and
outgoing migration or add parameter to indicate type of migration.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-Id: <1521742647-25550-7-git-send-email-a.perevalov@samsung.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
hmp.c
migration/migration.c
migration/migration.h
migration/postcopy-ram.c
migration/trace-events
qapi/migration.json