RE: [PATCH] vhost: fix data-plane access to released vq

2022-01-29 Thread Wang, YuanX
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Thursday, January 27, 2022 6:47 PM > To: Wang, YuanX ; Xia, Chenbo > > Cc: dev@dpdk.org; Hu, Jiayu ; Ding, Xuan > ; Ma, WenwuX ; Ling, > WeiX > Subject: Re: [PATCH] vhost: fix data-plane ac

Re: [PATCH] vhost: fix data-plane access to released vq

2022-01-27 Thread Maxime Coquelin
Hi, On 1/27/22 11:30, Wang, YuanX wrote: Hi Maxime, -Original Message- From: Maxime Coquelin Sent: Wednesday, January 26, 2022 10:03 PM To: Wang, YuanX ; Xia, Chenbo Cc: dev@dpdk.org; Hu, Jiayu ; Ding, Xuan ; Ma, WenwuX ; Ling, WeiX Subject: Re: [PATCH] vhost: fix data-plane access

RE: [PATCH] vhost: fix data-plane access to released vq

2022-01-27 Thread Wang, YuanX
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Wednesday, January 26, 2022 10:03 PM > To: Wang, YuanX ; Xia, Chenbo > > Cc: dev@dpdk.org; Hu, Jiayu ; Ding, Xuan > ; Ma, WenwuX ; Ling, > WeiX > Subject: Re: [PATCH] vhost: fix data-plane ac

Re: [PATCH] vhost: fix data-plane access to released vq

2022-01-26 Thread Maxime Coquelin
Hi Yuan, On 12/3/21 17:34, Yuan Wang wrote: From: yuan wang When numa reallocation occurs, numa_realoc() on the control plane will free the old vq. If rte_vhost_dequeue_burst() on the data plane get the vq just before release, then it will access the released vq. We need to put the vq->access_

[PATCH] vhost: fix data-plane access to released vq

2021-12-03 Thread Yuan Wang
From: yuan wang When numa reallocation occurs, numa_realoc() on the control plane will free the old vq. If rte_vhost_dequeue_burst() on the data plane get the vq just before release, then it will access the released vq. We need to put the vq->access_lock into struct virtio_net to ensure that it c