monitor: allow quitting while in preconfig state
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Oct 2020 10:56:32 +0000 (06:56 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 17:51:57 +0000 (12:51 -0500)
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hmp-commands.hx
qapi/control.json

index dd460eb90859c1efa803eb3546e8202f78d98975..470a420c2defaa2671d4cec98c7bbf4d5013db86 100644 (file)
@@ -45,6 +45,7 @@ ERST
         .params     = "",
         .help       = "quit the emulator",
         .cmd        = hmp_quit,
+        .flags      = "p",
     },
 
 SRST
index 9c8a51352d9dd02ef4f041e456cddb18ef28940b..2615d5170b82026b448e2e018bc7389ee269f935 100644 (file)
 # -> { "execute": "quit" }
 # <- { "return": {} }
 ##
-{ 'command': 'quit' }
+{ 'command': 'quit',
+  'allow-preconfig': true }
 
 ##
 # @MonitorMode: