« Previous | Next » 

Revision 6e0ca882

ID6e0ca8820dddd04056c43327f3b3699f572d03d4

Added by Luiz Capitulino over 12 years ago

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 <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences