Messages in this thread Patch in this message |  | | From | Guo Zhi <> | Subject | [PATCH v3 1/4] virtio_test: kick vhost for a batch of descriptors | Date | Sat, 9 Jul 2022 10:27:42 +0800 |
| |
Only kick vhost when the batch finishes.
Signed-off-by: Guo Zhi <qtxuning1999@sjtu.edu.cn> --- tools/virtio/virtio_test.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index 23f142af5..95f78b311 100644 --- a/tools/virtio/virtio_test.c +++ b/tools/virtio/virtio_test.c @@ -208,11 +208,10 @@ static void run_test(struct vdev_info *dev, struct vq_info *vq, } ++started; - - if (unlikely(!virtqueue_kick(vq->vq))) { - r = -1; - break; - } + } + if (unlikely(!virtqueue_kick(vq->vq))) { + r = -1; + break; } if (started >= bufs) -- 2.17.1
|  |