hmp: Allow HMP in preconfig state again
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 20 Jun 2018 15:39:47 +0000 (16:39 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 21 Jun 2018 12:18:11 +0000 (13:18 +0100)
Now we can cope with preconfig in HMP, reenable by reverting
commit 71dc578e116599ea73c8a2a4e693134702ec0e83.

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-8-dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
monitor.c

index 068c094a9a82bb975d9f55c261946e005ac8810b..0730a271728ba474e152bcbca365f4727e4b1b9d 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -3461,12 +3461,6 @@ static void handle_hmp_command(Monitor *mon, const char *cmdline)
 
     trace_handle_hmp_command(mon, cmdline);
 
-    if (runstate_check(RUN_STATE_PRECONFIG)) {
-        monitor_printf(mon, "HMP not available in preconfig state, "
-                            "use QMP instead\n");
-        return;
-    }
-
     cmd = monitor_parse_command(mon, cmdline, &cmdline, mon->cmd_table);
     if (!cmd) {
         return;