Re: [Qemu-devel] [PATCH 4/7] qdev: Introduce DEFINE_PROP_LINK

2017-06-28 Thread Fam Zheng
On Wed, 06/28 16:06, Paolo Bonzini wrote: > > > On 28/06/2017 16:02, Fam Zheng wrote: > >>> It's implemented by creating a wrapper property that basically forwards > >>> operations to a QOM "link-FOO" property, which handles the check > >>> callback and flags. The feature that is missing from QOM

Re: [Qemu-devel] [PATCH 4/7] qdev: Introduce DEFINE_PROP_LINK

2017-06-28 Thread Paolo Bonzini
On 28/06/2017 16:02, Fam Zheng wrote: >>> It's implemented by creating a wrapper property that basically forwards >>> operations to a QOM "link-FOO" property, which handles the check >>> callback and flags. The feature that is missing from QOM is the dynamic >>> child pointer which is done in the

Re: [Qemu-devel] [PATCH 4/7] qdev: Introduce DEFINE_PROP_LINK

2017-06-28 Thread Fam Zheng
On Wed, 06/28 15:38, Paolo Bonzini wrote: > > > On 28/06/2017 14:48, Fam Zheng wrote: > > > > It's implemented by creating a wrapper property that basically forwards > > operations to a QOM "link-FOO" property, which handles the check > > callback and flags. The feature that is missing from QOM

Re: [Qemu-devel] [PATCH 4/7] qdev: Introduce DEFINE_PROP_LINK

2017-06-28 Thread Paolo Bonzini
On 28/06/2017 14:48, Fam Zheng wrote: > > It's implemented by creating a wrapper property that basically forwards > operations to a QOM "link-FOO" property, which handles the check > callback and flags. The feature that is missing from QOM is the dynamic > child pointer which is done in the adde