[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [virtio-comment] RE: [PATCH V2 3/6] virtio: dont reset vqs when SUSPEND
On 11/22/2023 2:47 PM, Parav Pandit wrote:
From: Zhu, Lingshan <lingshan.zhu@intel.com> Sent: Wednesday, November 22, 2023 7:22 AM On 11/22/2023 5:18 AM, Michael S. Tsirkin wrote:On Tue, Nov 21, 2023 at 03:33:07PM +0800, Jason Wang wrote:Lingshan claimed that suspending device is for live migration in commit logand in discussion he portray it as some basic facility unrelated to device migration such as debug etc.Instead of claiming it as some non_device_migration facility does not makesense.It is used for migration for sure.Well having a generic facility to stop device sounds like a nice thing. However the devil is in the detail. A lot of detail here seems very much tailored to a very specific implementation in mind. So thinking through how it will work e.g. for power management would be a good excercise to figure out how it should work in detail. Parav did you indicate at some point a virtio specific SUSPEND bit can be useful for PM? Could you share how it's better than transport level PM and what the requirements are? Thanks!Do you mean letting the device enter a new power state when SUSPEND, and such description in transport-pci.tex? Then resume normal state on DRIVER_OK.My proposal is, 1. suspend bit (not state) to be controlled by the guest driver
The guest can set SUSPEND bit for sure. However there is no reason to forbid host from setting SUSPEND.The reason is, the live migration process should be transparent to the guest, that means the guest should be suspended first, then the host suspend the device,
so no I/O errors in the guest.
This is already in the patch, the driver should re-read to make sure the SUSPEND bit is set.2. this bit must be busy poll type. Meaning,
Yes, by re-read, for example the device should only present SUSPEND bit in the device status when it finisheda. the driver must get acknowledgement from the device that the suspend operation is completed in the device. b. the driver must get acknowledgement from the device that the resume operation is completed in the device.
the process to suspend, already in the patch series.
3. Not to confuse this with administrative mode active/stop/freeze set by the owner device during device migration 4. This feature is usable in power management use case and may be some other.
Yes, as long as we use virtio status to control PM, rather than the reverse.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]