vl: remove separate preconfig main_loop
commitb4e1a342112e50e05b609e857f38c1f2b7aafdc4
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Oct 2020 12:44:23 +0000 (27 08:44 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 17:51:49 +0000 (15 12:51 -0500)
tree19d4dd54d72b3a832be7587ec1f398d33f342ae2
parent164dafd1744c69d268b89015977e19d8a9617fdf
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>
include/sysemu/runstate.h
monitor/qmp-cmds.c
softmmu/vl.c