summary refs log tree commit diff stats
path: root/hmp.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2018-06-20 16:39:46 +0100
committerDr. David Alan Gilbert <dgilbert@redhat.com>2018-06-21 13:18:05 +0100
commit8e8581e6b1b77e878520a2334f8e74b1001f1578 (patch)
treedc922ea9ca2fd9341113e9c8a6fb16140730ef24 /hmp.c
parent8c7c7ecbb1e5e9325b736906a4368b76a68d0eae (diff)
downloadfocaccia-qemu-8e8581e6b1b77e878520a2334f8e74b1001f1578.tar.gz
focaccia-qemu-8e8581e6b1b77e878520a2334f8e74b1001f1578.zip
hmp: add exit_preconfig
Add the exit_preconfig command to return to normality.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20180620153947.30834-7-dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index f40d8279cf..f601099f90 100644
--- a/hmp.c
+++ b/hmp.c
@@ -1068,6 +1068,14 @@ void hmp_system_powerdown(Monitor *mon, const QDict *qdict)
     qmp_system_powerdown(NULL);
 }
 
+void hmp_exit_preconfig(Monitor *mon, const QDict *qdict)
+{
+    Error *err = NULL;
+
+    qmp_exit_preconfig(&err);
+    hmp_handle_error(mon, &err);
+}
+
 void hmp_cpu(Monitor *mon, const QDict *qdict)
 {
     int64_t cpu_index;