* [Qemu-devel] [6094] new monitor func status
@ 2008-12-18 22:43 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2008-12-18 22:43 UTC (permalink / raw)
To: qemu-devel
Revision: 6094
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6094
Author: aurel32
Date: 2008-12-18 22:43:56 +0000 (Thu, 18 Dec 2008)
Log Message:
-----------
new monitor func status
Attached is a small patch that adds the new info subcommand - status.
The status indicates if the VM is running or paused this info makes
life for (stateless) Qemu/KVM frontends easier.
(Philipp Wehrheim)
Modified Paths:
--------------
trunk/monitor.c
Modified: trunk/monitor.c
===================================================================
--- trunk/monitor.c 2008-12-18 22:43:48 UTC (rev 6093)
+++ trunk/monitor.c 2008-12-18 22:43:56 UTC (rev 6094)
@@ -1401,6 +1401,15 @@
}
#endif
+static void do_info_status(void)
+{
+ if (vm_running)
+ term_printf("VM status: running\n");
+ else
+ term_printf("VM status: paused\n");
+}
+
+
static void do_balloon(int value)
{
ram_addr_t target = value;
@@ -1557,6 +1566,8 @@
"", "show capture information" },
{ "snapshots", "", do_info_snapshots,
"", "show the currently saved VM snapshots" },
+ { "status", "", do_info_status,
+ "", "show the current VM status (running|paused)" },
{ "pcmcia", "", pcmcia_info,
"", "show guest PCMCIA status" },
{ "mice", "", do_info_mice,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-18 22:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-18 22:43 [Qemu-devel] [6094] new monitor func status Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).