Re: [PATCH] qom: reverse order of instance_post_init calls

2025-02-04 Thread Philippe Mathieu-Daudé
Hi Paolo, On 3/2/25 12:41, Paolo Bonzini wrote: Currently, the instance_post_init calls are performed from the leaf class and all the way up to Object. This is incorrect because the leaf class cannot observe property values applied by the superclasses; for example, a compat property will be set

Re: [PATCH] qom: reverse order of instance_post_init calls

2025-02-04 Thread Paolo Bonzini
On 2/4/25 16:08, Philippe Mathieu-Daudé wrote: Hi Paolo, On 3/2/25 12:41, Paolo Bonzini wrote: Currently, the instance_post_init calls are performed from the leaf class and all the way up to Object.  This is incorrect because the leaf class cannot observe property values applied by the supercla

Re: [PATCH] qom: reverse order of instance_post_init calls

2025-02-04 Thread Peter Maydell
On Tue, 4 Feb 2025 at 15:08, Philippe Mathieu-Daudé wrote: > > Hi Paolo, > > On 3/2/25 12:41, Paolo Bonzini wrote: > > Currently, the instance_post_init calls are performed from the leaf > > class and all the way up to Object. This is incorrect because the > > leaf class cannot observe property v

[PATCH] qom: reverse order of instance_post_init calls

2025-02-03 Thread Paolo Bonzini
Currently, the instance_post_init calls are performed from the leaf class and all the way up to Object. This is incorrect because the leaf class cannot observe property values applied by the superclasses; for example, a compat property will be set on a device *after* the class's post_init callback