Re: [PATCH 03/12] tests: Fix test-qdev-global-props on anonymous qdev realize()

2024-11-21 Thread Daniel P . Berrangé
On Wed, Nov 20, 2024 at 04:56:54PM -0500, Peter Xu wrote: > test-qdev-global-props creates a few subprocesses and test things based on > qdev realize(). One thing was overlooked since the start, that anonymous > creations of qdev (then realize() the device) requires the machine object's > presence

Re: [PATCH 03/12] tests: Fix test-qdev-global-props on anonymous qdev realize()

2024-11-21 Thread Philippe Mathieu-Daudé
On 20/11/24 22:56, Peter Xu wrote: test-qdev-global-props creates a few subprocesses and test things based on qdev realize(). One thing was overlooked since the start, that anonymous creations of qdev (then realize() the device) requires the machine object's presence, as all these devices need t

[PATCH 03/12] tests: Fix test-qdev-global-props on anonymous qdev realize()

2024-11-20 Thread Peter Xu
test-qdev-global-props creates a few subprocesses and test things based on qdev realize(). One thing was overlooked since the start, that anonymous creations of qdev (then realize() the device) requires the machine object's presence, as all these devices need to be attached to QOM tree, by default