aboutsummaryrefslogtreecommitdiff
path: root/hw/core/machine.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-10-21 05:25:58 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-10 12:15:11 -0500
commite0d17dfd22348eab63c5e19b7ee9c9212c2b8af8 (patch)
tree342bf50f0e243a707b80d6f96dc6f8d8dbcd0bd7 /hw/core/machine.c
parent0546c0609cb5a8d90c1cbac8e0d64b5a048bbb19 (diff)
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/machine.c')
-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;