vl: move various initialization routines out of qemu_init

Some very simple initialization routines can be nested in existing
subsystem-level functions, do that to simplify qemu_init.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2020-10-21 05:25:58 -04:00
parent 0546c0609c
commit e0d17dfd22
5 changed files with 7 additions and 19 deletions

View file

@ -4280,10 +4280,6 @@ void qemu_init(int argc, char **argv, char **envp)
exit(1);
}
blk_mig_init();
ram_mig_init();
dirty_bitmap_mig_init();
qemu_opts_foreach(qemu_find_opts("mon"),
mon_init_func, NULL, &error_fatal);
@ -4316,7 +4312,6 @@ void qemu_init(int argc, char **argv, char **envp)
reading from the other reads, because timer polling functions query
clock values from the log. */
replay_checkpoint(CHECKPOINT_INIT);
qdev_machine_init();
current_machine->boot_order = boot_order;