diff options
author | Paolo Bonzini | 2020-10-27 13:42:04 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-10 18:15:15 +0100 |
commit | ee55686efbd7de8dce8c1437c6e38fb4f5398c24 (patch) | |
tree | 99d8226f0831b751e627da84cbb4027e1e8fe185 /softmmu | |
parent | migration, vl: start migration via qmp_migrate_incoming (diff) | |
download | qemu-ee55686efbd7de8dce8c1437c6e38fb4f5398c24.tar.gz qemu-ee55686efbd7de8dce8c1437c6e38fb4f5398c24.tar.xz qemu-ee55686efbd7de8dce8c1437c6e38fb4f5398c24.zip |
vl: start VM via qmp_cont
Complement the previous patch by starting the VM with a QMP command.
The plan is that the user will be able to do the same, invoking two
commands "finish-machine-init" and "cont" instead of
"x-exit-preconfig".
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'softmmu')
-rw-r--r-- | softmmu/vl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c index 20dd0cd517..dc8a47efcb 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -110,6 +110,7 @@ #include "qapi/qapi-visit-ui.h" #include "qapi/qapi-commands-block-core.h" #include "qapi/qapi-commands-migration.h" +#include "qapi/qapi-commands-misc.h" #include "qapi/qapi-commands-run-state.h" #include "qapi/qapi-commands-ui.h" #include "qapi/qmp/qerror.h" @@ -4565,7 +4566,7 @@ void qemu_init(int argc, char **argv, char **envp) } } } else if (autostart) { - vm_start(); + qmp_cont(NULL); } accel_setup_post(current_machine); |