Skip to content
Snippets Groups Projects
Commit aa94d521 authored by Yuri Benditovich's avatar Yuri Benditovich Committed by Michael S. Tsirkin
Browse files

net: vhost stop updates virtio queue state


Make virtio queue suitable for push operation from qemu
after vhost was stopped.

Signed-off-by: default avatarYuri Benditovich <yuri.benditovich@daynix.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 312d3b35
No related branches found
No related tags found
No related merge requests found
......@@ -993,6 +993,7 @@ static void vhost_virtqueue_stop(struct vhost_dev *dev,
virtio_queue_set_last_avail_idx(vdev, idx, state.num);
}
virtio_queue_invalidate_signalled_used(vdev, idx);
virtio_queue_update_used_idx(vdev, idx);
/* In the cross-endian case, we need to reset the vring endianness to
* native as legacy devices expect so by default.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment