mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 06:21:52 -06:00
vhost: expose vhost_virtqueue_stop()
Expose vhost_virtqueue_stop(), we need to use it when resetting a virtqueue. Signed-off-by: Kangjie Xu <kangjie.xu@linux.alibaba.com> Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20221017092558.111082-9-xuanzhuo@linux.alibaba.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
ff48b62809
commit
e1f101d9f6
2 changed files with 6 additions and 4 deletions
|
@ -1201,10 +1201,10 @@ fail_alloc_desc:
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vhost_virtqueue_stop(struct vhost_dev *dev,
|
void vhost_virtqueue_stop(struct vhost_dev *dev,
|
||||||
struct VirtIODevice *vdev,
|
struct VirtIODevice *vdev,
|
||||||
struct vhost_virtqueue *vq,
|
struct vhost_virtqueue *vq,
|
||||||
unsigned idx)
|
unsigned idx)
|
||||||
{
|
{
|
||||||
int vhost_vq_index = dev->vhost_ops->vhost_get_vq_index(dev, idx);
|
int vhost_vq_index = dev->vhost_ops->vhost_get_vq_index(dev, idx);
|
||||||
struct vhost_vring_state state = {
|
struct vhost_vring_state state = {
|
||||||
|
|
|
@ -299,6 +299,8 @@ int vhost_device_iotlb_miss(struct vhost_dev *dev, uint64_t iova, int write);
|
||||||
|
|
||||||
int vhost_virtqueue_start(struct vhost_dev *dev, struct VirtIODevice *vdev,
|
int vhost_virtqueue_start(struct vhost_dev *dev, struct VirtIODevice *vdev,
|
||||||
struct vhost_virtqueue *vq, unsigned idx);
|
struct vhost_virtqueue *vq, unsigned idx);
|
||||||
|
void vhost_virtqueue_stop(struct vhost_dev *dev, struct VirtIODevice *vdev,
|
||||||
|
struct vhost_virtqueue *vq, unsigned idx);
|
||||||
|
|
||||||
void vhost_dev_reset_inflight(struct vhost_inflight *inflight);
|
void vhost_dev_reset_inflight(struct vhost_inflight *inflight);
|
||||||
void vhost_dev_free_inflight(struct vhost_inflight *inflight);
|
void vhost_dev_free_inflight(struct vhost_inflight *inflight);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue