From: He Peng <xnhp0320@icloud.com>
To: dev@dpdk.org
Cc: "\"CHENCHONG1 [陈冲]\"" <chenchong1@kingsoft.com>,
"\"YEXIAOFENG1 [叶小峰]\"" <YEXIAOFENG1@kingsoft.com>
Subject: [dpdk-dev] *rte_vhost_rx_queue_count* should be protected by vq->access_lock
Date: Wed, 14 Aug 2019 03:31:09 GMT [thread overview]
Message-ID: <25e23931-9add-4d5c-b46c-25d4f1f6c9f5@me.com> (raw)
Hi,
We found that *rte_vhost_rx_queue_count* is not protected by vq->access_lock,
and the access to vq->avail->idx is not thread-safe, since at the same time, the vq->avail might be
set by *vring_invalidate* when some vhost-user messages arrived, such as VRING_SET_ADDRESS,
VRING_SET_MEM_TABLE, etc.
Thanks.
next reply other threads:[~2019-08-14 3:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-14 3:31 He Peng [this message]
2019-08-15 6:07 ` Tiwei Bie
2019-08-15 9:14 He Peng
2019-08-15 13:41 ` Tiwei Bie
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=25e23931-9add-4d5c-b46c-25d4f1f6c9f5@me.com \
--to=xnhp0320@icloud.com \
--cc=YEXIAOFENG1@kingsoft.com \
--cc=chenchong1@kingsoft.com \
--cc=dev@dpdk.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;
as well as URLs for NNTP newsgroup(s).