• L
    HMP: info status: Print the VM state · 6e0ca882
    Luiz Capitulino 提交于
    Today our printf format for the "info status" command is:
    
      VM status: %s
    
    Where the string can be "running", "running (single step mode)" or
    "paused".
    
    This commit extends it to:
    
     VM status: %s (%s)
    
    The second string corresponds to the "status" field as returned
    by the query-status QMP command and it's only printed if "status"
    is not "running" or "paused".
    
    Example:
    
     VM status: paused (shutdown)
    
    PS: libvirt uses "info status" when using HMP, but the new format
        should not break it.
    Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
    6e0ca882
monitor.c 147.8 KB