diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2018-06-20 16:39:46 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2018-06-21 13:18:05 +0100 |
commit | 8e8581e6b1b77e878520a2334f8e74b1001f1578 (patch) | |
tree | dc922ea9ca2fd9341113e9c8a6fb16140730ef24 /hmp.c | |
parent | 8c7c7ecbb1e5e9325b736906a4368b76a68d0eae (diff) |
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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |