Re: [PATCH v4 07/15] vdpa: add vhost_vdpa_suspend

2023-03-03 Thread Eugenio Perez Martin
On Wed, Mar 1, 2023 at 2:30 AM Si-Wei Liu wrote: > > > > On 2/24/2023 7:54 AM, Eugenio Pérez wrote: > > The function vhost.c:vhost_dev_stop fetches the vring base so the vq > > state can be migrated to other devices. However, this is unreliable in > > vdpa, since we didn't signal the device to su

Re: [PATCH v4 07/15] vdpa: add vhost_vdpa_suspend

2023-02-28 Thread Si-Wei Liu
On 2/24/2023 7:54 AM, Eugenio Pérez wrote: The function vhost.c:vhost_dev_stop fetches the vring base so the vq state can be migrated to other devices. However, this is unreliable in vdpa, since we didn't signal the device to suspend the queues, making the value fetched useless. Suspend the

Re: [PATCH v4 07/15] vdpa: add vhost_vdpa_suspend

2023-02-27 Thread Jason Wang
在 2023/2/24 23:54, Eugenio Pérez 写道: The function vhost.c:vhost_dev_stop fetches the vring base so the vq state can be migrated to other devices. However, this is unreliable in vdpa, since we didn't signal the device to suspend the queues, making the value fetched useless. Suspend the device

[PATCH v4 07/15] vdpa: add vhost_vdpa_suspend

2023-02-24 Thread Eugenio Pérez
The function vhost.c:vhost_dev_stop fetches the vring base so the vq state can be migrated to other devices. However, this is unreliable in vdpa, since we didn't signal the device to suspend the queues, making the value fetched useless. Suspend the device if possible before fetching first and sub