[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP |
Date: |
Thu, 29 Aug 2024 16:50:28 +0100 |
On Thu, 29 Aug 2024 at 16:48, David Hildenbrand <david@redhat.com> wrote:
>
> > I have rewritten the documentation section to make it more explicit
> > that the reset might not happen. I would appreciate feedback if some
> > part still needs some care or if it is clear now.
> >
> > If the machine supports waking up from a suspended state and needs to
> > reset its devices during wake-up (from ``MachineClass::wakeup()``
> > method), this reset type should be used for such a request. Devices
> > can utilize this reset type to differentiate the reset requested
> > during machine wake-up from other reset requests. For example, a
> > virtio-mem device must not unplug its memory blocks during wake-up as
> > the contents of the guest RAM would get lost. However, this reset type
> > should not be used for wake-up detection, as not every machine type
> > issues a device reset request during wake-up.
>
> Sounds good to me.
>
> I'd probably generalize the virtio-mem bit to:
>
> "For example, RAM content must not be lost during wake-up, and memory
> devices like virtio-mem that provide additional RAM must not reset such
> state during wake-ups, but might do so during cold resets."
>
>
> @Peter, WDYT?
Yep, seems good to me: I think it's clear about when this
reset type happens and what you can/can't expect from it.
Minor grammar nit: should be
"from the ``MachineClass::wakeup()`` method".
-- PMM
- [PATCH v2 0/4] virtio-mem: Implement support for suspend+wake-up with plugged memory, Juraj Marcin, 2024/08/13
- [PATCH v2 1/4] reset: Use ResetType for qemu_devices_reset() and MachineClass::reset(), Juraj Marcin, 2024/08/13
- [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP, Juraj Marcin, 2024/08/13
- Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP, Peter Maydell, 2024/08/13
- Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP, Juraj Marcin, 2024/08/14
- Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP, David Hildenbrand, 2024/08/20
- Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP, Peter Maydell, 2024/08/20
- Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP, David Hildenbrand, 2024/08/20
- Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP, Juraj Marcin, 2024/08/28
- Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP, David Hildenbrand, 2024/08/29
- Re: [PATCH v2 2/4] reset: Add RESET_TYPE_WAKEUP,
Peter Maydell <=
- [PATCH v2 4/4] virtio-mem: Add support for suspend+wake-up with plugged memory, Juraj Marcin, 2024/08/13
- [PATCH v2 3/4] virtio-mem: Use new Resettable framework instead of LegacyReset, Juraj Marcin, 2024/08/13