monitor: allow quitting while in preconfig state

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2020-10-27 06:56:32 -04:00
parent 0a2949e0be
commit ebe3444468
2 changed files with 3 additions and 1 deletions

View File

@ -45,6 +45,7 @@ ERST
.params = "", .params = "",
.help = "quit the emulator", .help = "quit the emulator",
.cmd = hmp_quit, .cmd = hmp_quit,
.flags = "p",
}, },
SRST SRST

View File

@ -219,7 +219,8 @@
# -> { "execute": "quit" } # -> { "execute": "quit" }
# <- { "return": {} } # <- { "return": {} }
## ##
{ 'command': 'quit' } { 'command': 'quit',
'allow-preconfig': true }
## ##
# @MonitorMode: # @MonitorMode: