Re: [RFC PATCH] virtio: do not reset stateful devices on resume

2021-12-15 Thread Jason Wang
On Thu, Dec 16, 2021 at 1:27 AM Mikhail Golubev wrote: > > The 12/14/2021 18:26, Michael S. Tsirkin wrote: > > On Tue, Dec 14, 2021 at 05:33:05PM +0100, Mikhail Golubev wrote: > > > From: Anton Yakovlev > > > > > > We assume that stateful devices can maintain their state while > > > suspended. An

Re: [RFC PATCH] virtio: do not reset stateful devices on resume

2021-12-14 Thread Michael S. Tsirkin
On Tue, Dec 14, 2021 at 05:33:05PM +0100, Mikhail Golubev wrote: > From: Anton Yakovlev > > We assume that stateful devices can maintain their state while > suspended. And for this reason they don't have a freeze callback. If > such a device is reset during resume, the device state/context will b