From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A4EBA0471 for ; Wed, 14 Aug 2019 05:31:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7F2C51BE8A; Wed, 14 Aug 2019 05:31:12 +0200 (CEST) Received: from ms11p00im-hyfv17281201.me.com (ms11p00im-hyfv17281201.me.com [17.58.38.39]) by dpdk.org (Postfix) with ESMTP id A28F91BE85 for ; Wed, 14 Aug 2019 05:31:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1565753469; bh=T3ihR1rA4iOD4GNfwscOFxOasVTsu+fPB52SN3Ch+qI=; h=To:From:Subject:Date:Message-id:Content-Type; b=XVU7c/tqcwnX+sfNmY6v4RUyC3duMK04uzuQQ3lbgNIle90BOSfts6vy6efjDGSY/ ieRXj+KL9Bfu6w4WnBh/djezIIMJemWv7+6eQTh9hkoHURF3MjRK0iKp/Mof6y0fXE TMo7K85hZOYP50x2qZM30yZxCiOebI6CEsW1hfEUJRIHFCn6wGPi7PFdvrez/ONEw9 6thTz2cxnzHLpGJJmlqqHl99QVcSmtnZrmNAA654VRizyNF8ORlFu3oIs3q8bQQJoc vzAbGouSYroaRB9l1l86bo0x4EesDyJbHCK1iOZ/bhjFTyAvzPak1u34UqqcQVeUoa GqcS7Ge2bg+7Q== Received: from localhost (pv33p03im-webms003.me.com [17.142.224.114]) by ms11p00im-hyfv17281201.me.com (Postfix) with ESMTP id 8A1CDC00D20; Wed, 14 Aug 2019 03:31:09 +0000 (UTC) To: dev@dpdk.org Cc: =?utf-8?B?IkNIRU5DSE9ORzEgW+mZiOWGsl0i?= , =?utf-8?B?IllFWElBT0ZFTkcxIFvlj7blsI/ls7BdIg==?= From: He Peng Date: Wed, 14 Aug 2019 03:31:09 GMT X-Mailer: iCloud MailClient1914Project39 MailServer1913B46.10000-1913B-0-be2a8866e288 Message-id: <25e23931-9add-4d5c-b46c-25d4f1f6c9f5@me.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-08-14_01:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=588 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1812120000 definitions=main-1908140028 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] =?utf-8?q?*rte=5Fvhost=5Frx=5Fqueue=5Fcount*_should__b?= =?utf-8?q?e_protected_by_vq-=3Eaccess=5Flock?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi=EF=BC=8C=0A=0A=0AWe found that *rte_vhost_rx_queue_count* is not protec= ted by vq->access_lock,=0Aand=C2=A0the access to vq->avail->idx is not thr= ead-safe, since at the same time, the vq->avail=C2=A0=C2=A0might be=C2=A0=0A= =0Aset by *vring_invalidate* when some vhost-user messages arrived, such a= s VRING_SET_ADDRESS,=0AVRING_SET_MEM_TABLE, etc.=0A=0A=0AThanks.=C2=A0=0A=0A= =0A=0A