aboutsummaryrefslogtreecommitdiff
path: root/qmp.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-02-23 13:45:21 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-02-24 13:36:03 -0600
commit9b9df25a474bfee59dd46d033eb4ccc16582aac2 (patch)
treee7f04f11d065c2a4048887d9088f9554598ec4d0 /qmp.c
parentda98c8eb4c35225049cad8cf767647eb39788b5d (diff)
downloadqemu-9b9df25a474bfee59dd46d033eb4ccc16582aac2.zip
qemu-9b9df25a474bfee59dd46d033eb4ccc16582aac2.tar.gz
qemu-9b9df25a474bfee59dd46d033eb4ccc16582aac2.tar.bz2
suspend: add system_wakeup monitor command
This patch adds the system_wakeup monitor command which will simply wake up suspended guests. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.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 1f64844..a182b51 100644
--- a/qmp.c
+++ b/qmp.c
@@ -163,6 +163,11 @@ void qmp_cont(Error **errp)
vm_start();
}
+void qmp_system_wakeup(Error **errp)
+{
+ qemu_system_wakeup_request(QEMU_WAKEUP_REASON_OTHER);
+}
+
ObjectPropertyInfoList *qmp_qom_list(const char *path, Error **errp)
{
Object *obj;