summaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_mem.c
diff options
context:
space:
mode:
authorEli Cohen <elic@nvidia.com>2021-06-02 04:15:36 +0200
committerMichael S. Tsirkin <mst@redhat.com>2021-07-08 13:49:02 +0200
commitefa08cb468cdd67855f63f341eac5f5f9ac93370 (patch)
tree8f6b49119a58496c0a7221c90af202b4b169fc8c /drivers/virtio/virtio_mem.c
parentvp_vdpa: allow set vq state to initial state after reset (diff)
downloadlinux-efa08cb468cdd67855f63f341eac5f5f9ac93370.tar.xz
linux-efa08cb468cdd67855f63f341eac5f5f9ac93370.zip
virtio/vdpa: clear the virtqueue state during probe
Clear the available index as part of the initialization process to clear and values that might be left from previous usage of the device. For example, if the device was previously used by vhost_vdpa and now probed by vhost_vdpa, you want to start with indices. Fixes: c043b4a8cf3b ("virtio: introduce a vDPA based transport") Signed-off-by: Eli Cohen <elic@nvidia.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20210602021536.39525-5-jasowang@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eli Cohen <elic@nvidia.com>
Diffstat (limited to 'drivers/virtio/virtio_mem.c')
0 files changed, 0 insertions, 0 deletions