qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 00/20] qom: dynamic properties and compositio


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v3 00/20] qom: dynamic properties and composition tree
Date: Fri, 16 Dec 2011 15:56:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1

On 12/16/2011 03:54 PM, Anthony Liguori wrote:

Yes.  I'm not terribly sure how this would work yet.  A link and a child
property both acquire references to a device and release a reference to
a device at destruction time.

For a child property, the reference held by the parent is the only
reference in existing.  For non-child properties, the 'peripheral'
container also holds a reference (since you want to be able to assign
the device somewhere else in the device model).

I'm not sure tying life cycles for a user created device makes sense.
If a user creates a device, IMO, the user should be the one to destroy
the device.

I agree.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]