summaryrefslogtreecommitdiff
path: root/drivers/vdpa/vdpa_sim
diff options
context:
space:
mode:
authorSi-Wei Liu <si-wei.liu@oracle.com>2020-10-01 23:18:31 +0300
committerMichael S. Tsirkin <mst@redhat.com>2020-10-08 23:02:00 +0300
commit3176e974a750d6b700a10ffba0ec18d5a884fade (patch)
tree64298129035632eac87a9601d6a57ce57915a084 /drivers/vdpa/vdpa_sim
parent7ed9e3d97c32d969caded2dfb6e67c1a2cc5a0b1 (diff)
downloadlinux-3176e974a750d6b700a10ffba0ec18d5a884fade.tar.xz
vdpa/mlx5: should keep avail_index despite device status
A VM with mlx5 vDPA has below warnings while being reset: vhost VQ 0 ring restore failed: -1: Resource temporarily unavailable (11) vhost VQ 1 ring restore failed: -1: Resource temporarily unavailable (11) We should allow userspace emulating the virtio device be able to get to vq's avail_index, regardless of vDPA device status. Save the index that was last seen when virtq was stopped, so that userspace doesn't complain. Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com> Link: https://lore.kernel.org/r/1601583511-15138-1-git-send-email-si-wei.liu@oracle.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Eli Cohen <elic@nvidia.com>
Diffstat (limited to 'drivers/vdpa/vdpa_sim')
0 files changed, 0 insertions, 0 deletions