qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/3] net: vhost stop updates virtio queue state


From: yuri . benditovich
Subject: [Qemu-devel] [PATCH 2/3] net: vhost stop updates virtio queue state
Date: Mon, 7 Nov 2016 10:20:28 +0200

From: Yuri Benditovich <address@hidden>

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

Signed-off-by: Yuri Benditovich <address@hidden>
---
 hw/virtio/vhost.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
index bd051ab..2e990d0 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -963,6 +963,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.
-- 
1.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]