Re: [PATCH v7 05/11] hw/core/resettable: add support for changing parent

2020-01-17 Thread Philippe Mathieu-Daudé
On 1/15/20 1:36 PM, Damien Hedde wrote: Add a function resettable_change_parent() to do the required plumbing when changing the parent a of Resettable object. We need to make sure that the reset state of the object remains coherent with the reset state of the new parent. We make the 2 following

[PATCH v7 05/11] hw/core/resettable: add support for changing parent

2020-01-15 Thread Damien Hedde
Add a function resettable_change_parent() to do the required plumbing when changing the parent a of Resettable object. We need to make sure that the reset state of the object remains coherent with the reset state of the new parent. We make the 2 following hypothesis: + when an object is put in a