summaryrefslogtreecommitdiffstats
path: root/monitor
diff options
context:
space:
mode:
authorPaolo Bonzini2020-10-27 13:44:23 +0100
committerPaolo Bonzini2020-12-15 18:51:49 +0100
commitb4e1a342112e50e05b609e857f38c1f2b7aafdc4 (patch)
tree19d4dd54d72b3a832be7587ec1f398d33f342ae2 /monitor
parentremove preconfig state (diff)
downloadqemu-b4e1a342112e50e05b609e857f38c1f2b7aafdc4.tar.gz
qemu-b4e1a342112e50e05b609e857f38c1f2b7aafdc4.tar.xz
qemu-b4e1a342112e50e05b609e857f38c1f2b7aafdc4.zip
vl: remove separate preconfig main_loop
Move post-preconfig initialization to the x-exit-preconfig. If preconfig is not requested, just exit preconfig mode immediately with the QMP command. As a result, the preconfig loop will run with accel_setup_post and os_setup_post restrictions (xen_restrict, chroot, etc.) already done. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'monitor')
-rw-r--r--monitor/qmp-cmds.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/monitor/qmp-cmds.c b/monitor/qmp-cmds.c
index 639a219294..d141aaa132 100644
--- a/monitor/qmp-cmds.c
+++ b/monitor/qmp-cmds.c
@@ -102,15 +102,6 @@ void qmp_system_powerdown(Error **errp)
qemu_system_powerdown_request();
}
-void qmp_x_exit_preconfig(Error **errp)
-{
- if (qdev_hotplug) {
- error_setg(errp, "The command is permitted only before machine initialization");
- return;
- }
- qemu_exit_preconfig_request();
-}
-
void qmp_cont(Error **errp)
{
BlockBackend *blk;