[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 08/33] Add function to control reset with gpi
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v3 08/33] Add function to control reset with gpio inputs |
Date: |
Wed, 7 Aug 2019 11:37:51 +0100 |
On Wed, 31 Jul 2019 at 07:33, David Gibson <address@hidden> wrote:
>
> On Mon, Jul 29, 2019 at 04:56:29PM +0200, Damien Hedde wrote:
> > It adds the possibility to add 2 gpios to control the warm and cold reset.
> > With theses ios, the reset can be maintained during some time.
> > Each io is associated with a state to detect level changes.
> >
> > Vmstate subsections are also added to the existsing device_reset
> > subsection.
>
> This doesn't seem like a thing that should be present on every single
> DeviceState.
It's a facility that's going to be useful to multiple different
subclasses of DeviceState, so it seems to me cleaner to
have base class support for the common feature rather than
to reimplement it entirely from scratch in every subclass
that wants it.
(The patch as written breaks migration compatibility -- the
new fields need to go in their own vmstate subsection
with a suitable 'needed' function -- but that can be fixed.)
thanks
-- PMM
- Re: [Qemu-devel] [PATCH v3 08/33] Add function to control reset with gpio inputs,
Peter Maydell <=