[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 24/36] vl: start VM via qmp_cont
From: |
Paolo Bonzini |
Subject: |
[PATCH 24/36] vl: start VM via qmp_cont |
Date: |
Mon, 23 Nov 2020 09:14:23 -0500 |
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>
---
softmmu/vl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/softmmu/vl.c b/softmmu/vl.c
index d548c31ba0..ecfe16c4c4 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"
@@ -4558,7 +4559,7 @@ void qemu_init(int argc, char **argv, char **envp)
}
}
} else if (autostart) {
- vm_start();
+ qmp_cont(NULL);
}
accel_setup_post(current_machine);
--
2.26.2
- Re: [PATCH 21/36] vl: initialize displays before preconfig loop, (continued)
- [PATCH 28/36] vl: allow -incoming defer with -preconfig, Paolo Bonzini, 2020/11/23
- [PATCH 30/36] vl: extract machine done notifiers, Paolo Bonzini, 2020/11/23
- [PATCH 31/36] vl: extract softmmu/rtc.c, Paolo Bonzini, 2020/11/23
- [PATCH 19/36] vl: separate qemu_apply_machine_options, Paolo Bonzini, 2020/11/23
- [PATCH 29/36] vl: extract softmmu/datadir.c, Paolo Bonzini, 2020/11/23
- [PATCH 24/36] vl: start VM via qmp_cont,
Paolo Bonzini <=
- [PATCH 36/36] vl: move all generic initialization out of vl.c, Paolo Bonzini, 2020/11/23
- [PATCH 27/36] vl: remove separate preconfig main_loop, Paolo Bonzini, 2020/11/23
- [PATCH 32/36] vl: extract softmmu/runstate.c, Paolo Bonzini, 2020/11/23
- [PATCH 33/36] vl: extract softmmu/globals.c, Paolo Bonzini, 2020/11/23
- [PATCH 35/36] vl: clean up -boot variables, Paolo Bonzini, 2020/11/23