Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-19 Thread Paolo Bonzini
On 19/07/2016 15:29, Igor Mammedov wrote: > On Tue, 19 Jul 2016 14:21:05 +0200 > Paolo Bonzini wrote: > >> On 19/07/2016 13:59, Eduardo Habkost wrote: >>> If it's internal, do we have any reason to register a (writeable) >>> property in the first place? Why not use a plain old >>> "

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-19 Thread Igor Mammedov
On Tue, 19 Jul 2016 14:21:05 +0200 Paolo Bonzini wrote: > On 19/07/2016 13:59, Eduardo Habkost wrote: > >>> > > If it's internal, do we have any reason to register a (writeable) > >>> > > property in the first place? Why not use a plain old > >>> > > "obj->field = value" C statement? Or, if a sim

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-19 Thread Paolo Bonzini
On 19/07/2016 13:59, Eduardo Habkost wrote: >>> > > If it's internal, do we have any reason to register a (writeable) >>> > > property in the first place? Why not use a plain old >>> > > "obj->field = value" C statement? Or, if a simple assignment >>> > > isn't enough, why not a simple obj_set_fi

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-19 Thread Eduardo Habkost
On Mon, Jul 18, 2016 at 09:23:04AM +0200, Igor Mammedov wrote: > On Fri, 15 Jul 2016 18:33:53 -0300 > Eduardo Habkost wrote: > > > On Fri, Jul 15, 2016 at 08:38:35PM +0200, Igor Mammedov wrote: > > > On Fri, 15 Jul 2016 14:43:53 -0300 > > > Eduardo Habkost wrote: > > > > On Fri, Jul 15, 2016 a

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-19 Thread Eduardo Habkost
On Sat, Jul 16, 2016 at 05:30:04PM +0200, Andrew Jones wrote: > On Fri, Jul 15, 2016 at 06:33:53PM -0300, Eduardo Habkost wrote: > > On Fri, Jul 15, 2016 at 08:38:35PM +0200, Igor Mammedov wrote: > > > On Fri, 15 Jul 2016 14:43:53 -0300 > > > Eduardo Habkost wrote: > > > > On Fri, Jul 15, 2016 at

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-18 Thread Igor Mammedov
On Fri, 15 Jul 2016 18:33:53 -0300 Eduardo Habkost wrote: > On Fri, Jul 15, 2016 at 08:38:35PM +0200, Igor Mammedov wrote: > > On Fri, 15 Jul 2016 14:43:53 -0300 > > Eduardo Habkost wrote: > > > On Fri, Jul 15, 2016 at 06:30:41PM +0200, Andreas Färber wrote: > > > > Am 15.07.2016 um 18:10 sc

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-16 Thread Andrew Jones
On Fri, Jul 15, 2016 at 06:33:53PM -0300, Eduardo Habkost wrote: > On Fri, Jul 15, 2016 at 08:38:35PM +0200, Igor Mammedov wrote: > > On Fri, 15 Jul 2016 14:43:53 -0300 > > Eduardo Habkost wrote: > > > On Fri, Jul 15, 2016 at 06:30:41PM +0200, Andreas Färber wrote: > > > > Am 15.07.2016 um 18:10 s

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-15 Thread Eduardo Habkost
On Fri, Jul 15, 2016 at 08:38:35PM +0200, Igor Mammedov wrote: > On Fri, 15 Jul 2016 14:43:53 -0300 > Eduardo Habkost wrote: > > On Fri, Jul 15, 2016 at 06:30:41PM +0200, Andreas Färber wrote: > > > Am 15.07.2016 um 18:10 schrieb Eduardo Habkost: > > > > On Fri, Jul 15, 2016 at 11:11:38AM +0200, I

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-15 Thread Igor Mammedov
On Fri, 15 Jul 2016 14:43:53 -0300 Eduardo Habkost wrote: > On Fri, Jul 15, 2016 at 06:30:41PM +0200, Andreas Färber wrote: > > Am 15.07.2016 um 18:10 schrieb Eduardo Habkost: > > > On Fri, Jul 15, 2016 at 11:11:38AM +0200, Igor Mammedov wrote: > > >> On Fri, 15 Jul 2016 08:35:30 +0200 > > >> And

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-15 Thread Eduardo Habkost
On Fri, Jul 15, 2016 at 06:30:41PM +0200, Andreas Färber wrote: > Am 15.07.2016 um 18:10 schrieb Eduardo Habkost: > > On Fri, Jul 15, 2016 at 11:11:38AM +0200, Igor Mammedov wrote: > >> On Fri, 15 Jul 2016 08:35:30 +0200 > >> Andrew Jones wrote: > >>> On Thu, Jul 14, 2016 at 05:07:43PM -0300, Edua

Re: [Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-15 Thread Andreas Färber
Am 15.07.2016 um 18:10 schrieb Eduardo Habkost: > On Fri, Jul 15, 2016 at 11:11:38AM +0200, Igor Mammedov wrote: >> On Fri, 15 Jul 2016 08:35:30 +0200 >> Andrew Jones wrote: >>> On Thu, Jul 14, 2016 at 05:07:43PM -0300, Eduardo Habkost wrote: First of all, sorry for the horrible delay in

[Qemu-devel] QOM: best way for parents to pass information to children? (was Re: [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties)

2016-07-15 Thread Eduardo Habkost
On Fri, Jul 15, 2016 at 11:11:38AM +0200, Igor Mammedov wrote: > On Fri, 15 Jul 2016 08:35:30 +0200 > Andrew Jones wrote: > > On Thu, Jul 14, 2016 at 05:07:43PM -0300, Eduardo Habkost wrote: > > > > > > First of all, sorry for the horrible delay in replying to this > > > thread. > > > > > > On W