RE: [virtio-dev] Re: [VIRTIO PCI PATCH v5 1/1] transport-pci: Add freeze_mode to virtio_pci_common_cfg

Parav Pandit
2023-09-27T10:18:46Z

> From: Michael S. Tsirkin <mst@redhat.com>
> Sent: Tuesday, September 26, 2023 5:28 PM

[..]

> > When new feature bit of suspend is offered, guest will _not_ do reset, hence
> no need to mix reset with suspend.
> >
> > [1] https://lists.oasis-open.org/archives/virtio-comment/202309/msg00260.html
>
> I frankly don't understand what you proposed there.
>
> reset is a simple operation, it just erases all virtio state from the device. It is very
> commonly is performed at OS/driver startup. Making it not reset some virtio
> state is a bad idea since suddenly you kexec a guest that attempts a reset and
> device is stuck in some weird state.

Just exactly what you said.
Reset simply resets the device including the suspended state and any other bit being set.

Reset flow cannot be influenced by some suspend bit setting.
I said same in above [1].