summary refs log tree commit diff stats
path: root/system/vl.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-11-21 14:21:59 -0500
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-09 18:16:24 +0100
commit1c34335844950a152c020ec80ce7cf711b1861bc (patch)
tree78ca12c4d57c25cad2c6ec32b7afc4142de9fc88 /system/vl.c
parent41fc91772841c93c218df78d7e359cb2cd00dff5 (diff)
downloadfocaccia-qemu-1c34335844950a152c020ec80ce7cf711b1861bc.tar.gz
focaccia-qemu-1c34335844950a152c020ec80ce7cf711b1861bc.zip
qdev: Use machine_get_container()
Use machine_get_container() whenever applicable across the tree.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20241121192202.4155849-11-peterx@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'system/vl.c')
-rw-r--r--system/vl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/vl.c b/system/vl.c
index 3c5bd36d7d..ed1623b26b 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -2137,8 +2137,7 @@ static void qemu_create_machine(QDict *qdict)
     object_property_add_child(object_get_root(), "machine",
                               OBJECT(current_machine));
     qemu_create_machine_containers(OBJECT(current_machine));
-    object_property_add_child(container_get(OBJECT(current_machine),
-                                            "/unattached"),
+    object_property_add_child(machine_get_container("unattached"),
                               "sysbus", OBJECT(sysbus_get_default()));
 
     if (machine_class->minimum_page_bits) {