mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 23:23:03 +00:00
b4cca6d48e
Starting from an used_idx different than 0 is needed in use cases like virtual machine migration. Not doing so and letting the caller set an avail idx different than 0 causes destination device to try to use old buffers that source driver already recover and are not available anymore. Since vdpa_sim does not support receive inflight descriptors as a destination of a migration, let's set both avail_idx and used_idx the same at vq start. This is how vhost-user works in a VHOST_SET_VRING_BASE call. Although the simple fix is to set last_used_idx at vdpasim_set_vq_state, it would be reset at vdpasim_queue_ready. The last_avail_idx case is fixed with commit |
||
---|---|---|
.. | ||
alibaba | ||
ifcvf | ||
mlx5 | ||
solidrun | ||
vdpa_sim | ||
vdpa_user | ||
virtio_pci | ||
Kconfig | ||
Makefile | ||
vdpa.c |