]> git.proxmox.com Git - qemu.git/commit
HMP: info status: Print the VM state
authorLuiz Capitulino <lcapitulino@redhat.com>
Tue, 9 Aug 2011 17:44:25 +0000 (14:44 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 15 Sep 2011 19:39:32 +0000 (16:39 -0300)
commit6e0ca8820dddd04056c43327f3b3699f572d03d4
tree64018477e73c610089fafd118b43a626d2f4565c
parent9e37b9dc5bf037453e062ee515014875cd05068d
HMP: info status: Print the VM state

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: Luiz Capitulino <lcapitulino@redhat.com>
monitor.c