summaryrefslogtreecommitdiffstats
path: root/hw/core
diff options
context:
space:
mode:
authorPaolo Bonzini2020-10-21 11:25:58 +0200
committerPaolo Bonzini2020-12-10 18:15:11 +0100
commite0d17dfd22348eab63c5e19b7ee9c9212c2b8af8 (patch)
tree342bf50f0e243a707b80d6f96dc6f8d8dbcd0bd7 /hw/core
parentvl: split various early command line options to a separate function (diff)
downloadqemu-e0d17dfd22348eab63c5e19b7ee9c9212c2b8af8.tar.gz
qemu-e0d17dfd22348eab63c5e19b7ee9c9212c2b8af8.tar.xz
qemu-e0d17dfd22348eab63c5e19b7ee9c9212c2b8af8.zip
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>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/machine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c
index bd97fc2f1a..83f45a9351 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -877,6 +877,9 @@ static void machine_initfn(Object *obj)
MachineState *ms = MACHINE(obj);
MachineClass *mc = MACHINE_GET_CLASS(obj);
+ container_get(obj, "/peripheral");
+ container_get(obj, "/peripheral-anon");
+
ms->dump_guest_core = true;
ms->mem_merge = true;
ms->enable_graphics = true;