• A
    migration: add postcopy total blocktime into query-migrate · ca6011c2
    Alexey Perevalov 提交于
    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: NDr. David Alan Gilbert <dgilbert@redhat.com>
    Signed-off-by: NAlexey Perevalov <a.perevalov@samsung.com>
    Reviewed-by: NJuan Quintela <quintela@redhat.com>
    Signed-off-by: NJuan Quintela <quintela@redhat.com>
    ca6011c2
hmp.c 89.7 KB