[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] cpu: Register QOM links at /machine/cpus/<index
From: |
Peter Crosthwaite |
Subject: |
Re: [Qemu-devel] [PATCH] cpu: Register QOM links at /machine/cpus/<index> |
Date: |
Thu, 30 Apr 2015 18:54:38 -0700 |
On Thu, Apr 30, 2015 at 2:47 PM, Paolo Bonzini <address@hidden> wrote:
>
>
> On 30/04/2015 22:21, Andreas Färber wrote:
>>>+ cpu->self = cobj;
>>>+ object_property_add_link(cpu_container, path, TYPE_CPU, &cpu->self,
>>>NULL,
>>>+ OBJ_PROP_LINK_UNREF_ON_RELEASE, &error_abort);
>
> Doesn't this leak the CPU object?
>
> I have a patch to add "." and ".." properties. You can use them to add
> an alias to an object.
>
Curious, are we ultimately going for full canonical path navigation by
string? Going the other way, I still have application of setting a
property of a child object from reference to a parent that might fit
in:
http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03281.html
Regards,
Peter
> Paolo
>