From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: BillXiang <xiangwencheng@dayudpu.com>, Chenbo Xia <chenbox@nvidia.com>
Cc: dev@dpdk.org
Subject: Re: [PATCH] vdpa: update used->flags in used ring relay
Date: Thu, 19 Sep 2024 12:37:59 +0200 [thread overview]
Message-ID: <36abff3f-2b99-497f-bba4-1958074e326b@redhat.com> (raw)
In-Reply-To: <20240717032447.39723-1-xiangwencheng@dayudpu.com>
On 7/17/24 05:24, BillXiang wrote:
> From: BillXiang <xiangwencheng@dayudpu.com>
>
> The vDPA device will work incorrectly if flags such as
> VRING_USED_F_NO_NOTIFY are not updated correctly.
>
> Signed-off-by: BillXiang <xiangwencheng@dayudpu.com>
> ---
> lib/vhost/vdpa.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/vhost/vdpa.c b/lib/vhost/vdpa.c
> index a1dd5a753b..8abb073675 100644
> --- a/lib/vhost/vdpa.c
> +++ b/lib/vhost/vdpa.c
> @@ -174,6 +174,7 @@ rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m)
> idx = vq->used->idx;
> idx_m = s_vring->used->idx;
> ret = (uint16_t)(idx_m - idx);
> + vq->used->flags = s_vring->used->flags;
>
> while (idx != idx_m) {
> /* copy used entry, used ring logging is not covered here */
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Thanks,
Maxime
next prev parent reply other threads:[~2024-09-19 10:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-17 3:24 BillXiang
2024-09-19 10:37 ` Maxime Coquelin [this message]
2024-09-19 10:41 ` Maxime Coquelin
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=36abff3f-2b99-497f-bba4-1958074e326b@redhat.com \
--to=maxime.coquelin@redhat.com \
--cc=chenbox@nvidia.com \
--cc=dev@dpdk.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).