From: Guo Zhi <qtxuning1999@sjtu.edu.cn>
To: jasowang@redhat.com, mst@redhat.com
Cc: eperezma@redhat.com, virtualization@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, sgarzare@redhat.com,
Guo Zhi <qtxuning1999@sjtu.edu.cn>
Subject: [PATCH v3 1/4] virtio_test: kick vhost for a batch of descriptors
Date: Sat, 9 Jul 2022 10:27:42 +0800 [thread overview]
Message-ID: <20220709022745.21020-2-qtxuning1999@sjtu.edu.cn> (raw)
In-Reply-To: <20220709022745.21020-1-qtxuning1999@sjtu.edu.cn>
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
next prev parent reply other threads:[~2022-07-09 2:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-09 2:27 [PATCH v3 0/4] virtio/virtio_test Guo Zhi
2022-07-09 2:27 ` Guo Zhi [this message]
2022-07-09 2:27 ` [PATCH v3 2/4] virtio_test: use random length scatterlists to test descriptor chain Guo Zhi
2022-07-11 15:35 ` Eugenio Perez Martin
2022-07-17 11:33 ` Guo Zhi
2022-07-09 2:27 ` [PATCH v3 3/4] virtio_test: enable indirection feature Guo Zhi
2022-07-09 2:27 ` [PATCH v3 4/4] virtio_test: pregenerate random numbers Guo Zhi
2022-07-21 11:55 ` [PATCH v3 0/4] virtio/virtio_test Guo Zhi
2022-08-03 9:00 ` Guo Zhi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220709022745.21020-2-qtxuning1999@sjtu.edu.cn \
--to=qtxuning1999@sjtu.edu.cn \
--cc=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=sgarzare@redhat.com \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®