From: "Michael S. Tsirkin" <mst@redhat.com>
To: BillXiang <xiangwencheng@dayudpu.com>
Cc: qemu-devel@nongnu.org, alex.bennee@linaro.org
Subject: Re: [PATCH] vhsot-user: Remove redundant judgment
Date: Sat, 20 Jul 2024 15:13:47 -0400 [thread overview]
Message-ID: <20240720151228-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20240710074041.85984-1-xiangwencheng@dayudpu.com>
On Wed, Jul 10, 2024 at 03:40:41PM +0800, BillXiang wrote:
> From: BillXiang <xiangwencheng@dayudpu.com>
>
> Send only once has been supported in vhost_user_write by vhost_user_per_device_request
>
> Signed-off-by: BillXiang <xiangwencheng@dayudpu.com>
I am confused by all the patches. Is it on top of your
other patch or instead of? Because that one added
the vq index check.
If we are going to check vq index it's likely cleaner to
always check it.
And again, typos do not inspire confidence. How was this tested?
> ---
> hw/virtio/vhost-user.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
> index 00561daa06..04e3568b7e 100644
> --- a/hw/virtio/vhost-user.c
> +++ b/hw/virtio/vhost-user.c
> @@ -446,11 +446,6 @@ static int vhost_user_set_log_base(struct vhost_dev *dev, uint64_t base,
> .hdr.size = sizeof(msg.payload.log),
> };
>
> - /* Send only once with first queue pair */
> - if (dev->vq_index != 0) {
> - return 0;
> - }
> -
> if (shmfd && log->fd != -1) {
> fds[fd_num++] = log->fd;
> }
> --
> 2.30.0
next prev parent reply other threads:[~2024-07-20 19:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-10 7:40 [PATCH] vhsot-user: Remove redundant judgment BillXiang
2024-07-20 19:13 ` Michael S. Tsirkin [this message]
2024-07-21 3:33 ` BillXiang
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=20240720151228-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=xiangwencheng@dayudpu.com \
/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;
as well as URLs for NNTP newsgroup(s).