[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH v2 01/16] qom/object: Add a new function object_in
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-arm] [PATCH v2 01/16] qom/object: Add a new function object_initialize_child() |
Date: |
Fri, 13 Jul 2018 18:46:54 -0300 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Fri, Jul 13, 2018 at 11:29:17PM +0200, Andreas Färber wrote:
> Am 13.07.2018 um 23:16 schrieb Eduardo Habkost:
> > I wonder if we should deprecate object_initialize() and support
> > only object_initialize_child() later. Initializing an object
> > contained inside another one without making it a child of the
> > parent object is a recipe for trouble.
>
> The root container object needs to be initialized, too.
If the object is not embedded in another struct, I would expect
it to be created using object_new() instead of
object_initialize().
--
Eduardo
[Qemu-arm] [PATCH v2 02/16] hw/core/sysbus: Add a function for creating and attaching an object, Thomas Huth, 2018/07/13
[Qemu-arm] [PATCH v2 03/16] hw/arm/bcm2836: Fix crash with device_add bcm2837 on unsupported machines, Thomas Huth, 2018/07/13
[Qemu-arm] [PATCH v2 04/16] hw/arm/armv7: Fix crash when introspecting the "iotkit" device, Thomas Huth, 2018/07/13