• J
    Add event and state details for post-copy · 5a9cbc62
    Jiri Denemark 提交于
    VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY and VIR_DOMAIN_PAUSED_POSTCOPY are
    used on the source host once migration enters post-copy mode (which
    means the domain gets paused on the source. After the destination host
    takes over the execution of the domain, its virtual CPUs are resumed and
    the domain enters VIR_DOMAIN_RUNNING_POSTCOPY state and
    VIR_DOMAIN_EVENT_RESUMED_POSTCOPY event is emitted.
    
    In case migration fails during post-copy mode and none of the hosts have
    complete state of the domain, both domains will remain paused with
    VIR_DOMAIN_PAUSED_POSTCOPY_FAILED reason and an upper layer may decide
    what to do.
    Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
    5a9cbc62
virsh-domain-monitor.c 67.0 KB