summaryrefslogtreecommitdiff
path: root/qmp.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-09-15 14:34:39 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2011-10-04 11:02:57 -0300
commitff8701e59c6aec9461aa0c13f8f7e5a249aa62f3 (patch)
tree47e34188e4171242f47ec2f0e950e22ef290a184 /qmp.c
parent82ae3a51382793cadfa55fda4ba9c0e3f3645956 (diff)
downloadqemu-ff8701e59c6aec9461aa0c13f8f7e5a249aa62f3.tar.gz
qemu-ff8701e59c6aec9461aa0c13f8f7e5a249aa62f3.tar.bz2
qemu-ff8701e59c6aec9461aa0c13f8f7e5a249aa62f3.zip
qapi: Convert stop
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qmp.c')
-rw-r--r--qmp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/qmp.c b/qmp.c
index 1d380b6a5f..6c464792ec 100644
--- a/qmp.c
+++ b/qmp.c
@@ -76,3 +76,8 @@ void qmp_quit(Error **err)
qemu_system_shutdown_request();
}
+void qmp_stop(Error **errp)
+{
+ vm_stop(RUN_STATE_PAUSED);
+}
+