qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Richard Henderson
Subject: Re: [PATCH v6 05/11] hw/core/resettable: add support for changing parent
Date: Sun, 29 Dec 2019 10:47:07 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

On 12/20/19 10:50 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 hypothesis:
> + when an object is put in a parent under reset, the object goes in
> reset.
> + when an object is removed from a parent under reset, the object
> leaves reset.
> 
> The added function avoids any glitch if both old and new parent are
> already in reset.
> 
> Signed-off-by: Damien Hedde <address@hidden>
> ---
>  include/hw/resettable.h | 16 +++++++++++
>  hw/core/resettable.c    | 62 +++++++++++++++++++++++++++++++++++++++--
>  hw/core/trace-events    |  1 +
>  3 files changed, 77 insertions(+), 2 deletions(-)

Reviewed-by: Richard Henderson <address@hidden>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]