Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-19 Thread Hu, Jiayu
> -Original Message- > From: Maxime Coquelin > Sent: Monday, April 19, 2021 3:13 PM > To: Hu, Jiayu ; dev@dpdk.org > Cc: Xia, Chenbo ; Wang, Yinan > ; Pai G, Sunil ; Jiang, Cheng1 > > Subject: Re: [PATCH v2 3/4] vhost: avoid deadlock on async register > > What about memory hot

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-19 Thread Maxime Coquelin
On 4/19/21 6:10 AM, Hu, Jiayu wrote: > Hi Maxime, > >> -Original Message- >> From: Maxime Coquelin >> Sent: Friday, April 16, 2021 4:34 PM >> To: Hu, Jiayu ; dev@dpdk.org >> Cc: Xia, Chenbo ; Wang, Yinan >> ; Pai G, Sunil ; Jiang, Cheng1 >> >> Subject: Re: [PATCH v2 3/4] vhost: avoid

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-18 Thread Hu, Jiayu
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Friday, April 16, 2021 4:34 PM > To: Hu, Jiayu ; dev@dpdk.org > Cc: Xia, Chenbo ; Wang, Yinan > ; Pai G, Sunil ; Jiang, Cheng1 > > Subject: Re: [PATCH v2 3/4] vhost: avoid deadlock on async register > > > > On 4/16/21 10:

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-16 Thread Maxime Coquelin
On 4/16/21 10:18 AM, Hu, Jiayu wrote: > Hi Maxime, > >> -Original Message- >> From: Maxime Coquelin >> Sent: Friday, April 16, 2021 2:35 PM >> To: Hu, Jiayu ; dev@dpdk.org >> Cc: Xia, Chenbo ; Wang, Yinan >> ; Pai G, Sunil ; Jiang, Cheng1 >> >> Subject: Re: [PATCH v2 3/4] vhost: avoid

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-16 Thread Hu, Jiayu
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Friday, April 16, 2021 2:35 PM > To: Hu, Jiayu ; dev@dpdk.org > Cc: Xia, Chenbo ; Wang, Yinan > ; Pai G, Sunil ; Jiang, Cheng1 > > Subject: Re: [PATCH v2 3/4] vhost: avoid deadlock on async register > > Hi Jiayu, > > On 4/

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-15 Thread Maxime Coquelin
Hi Jiayu, On 4/16/21 4:19 AM, Hu, Jiayu wrote: > Hi Maxime, > >> -Original Message- >> From: Maxime Coquelin >> Sent: Thursday, April 15, 2021 3:09 PM >> To: Hu, Jiayu ; dev@dpdk.org >> Cc: Xia, Chenbo ; Wang, Yinan >> ; Pai G, Sunil ; Jiang, Cheng1 >> >> Subject: Re: [PATCH v2 3/4] vho

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-15 Thread Hu, Jiayu
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Thursday, April 15, 2021 3:09 PM > To: Hu, Jiayu ; dev@dpdk.org > Cc: Xia, Chenbo ; Wang, Yinan > ; Pai G, Sunil ; Jiang, Cheng1 > > Subject: Re: [PATCH v2 3/4] vhost: avoid deadlock on async register > > > > On 4/15/21 3

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-15 Thread Maxime Coquelin
On 4/15/21 3:08 AM, Hu, Jiayu wrote: > > >> -Original Message- >> From: Maxime Coquelin >> Sent: Wednesday, April 14, 2021 6:09 PM >> To: Hu, Jiayu ; dev@dpdk.org >> Cc: Xia, Chenbo ; Wang, Yinan >> ; Pai G, Sunil ; Jiang, Cheng1 >> >> Subject: Re: [PATCH v2 3/4] vhost: avoid deadloc

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-14 Thread Hu, Jiayu
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, April 14, 2021 6:09 PM > To: Hu, Jiayu ; dev@dpdk.org > Cc: Xia, Chenbo ; Wang, Yinan > ; Pai G, Sunil ; Jiang, Cheng1 > > Subject: Re: [PATCH v2 3/4] vhost: avoid deadlock on async register > > > > On 4/14/21 3:40 AM, H

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-14 Thread Maxime Coquelin
On 4/14/21 3:40 AM, Hu, Jiayu wrote: > Hi Maxime, > >> -Original Message- >> From: Maxime Coquelin >> Sent: Tuesday, April 13, 2021 7:33 PM >> To: Hu, Jiayu ; dev@dpdk.org >> Cc: Xia, Chenbo ; Wang, Yinan >> ; Pai G, Sunil ; Jiang, Cheng1 >> >> Subject: Re: [PATCH v2 3/4] vhost: avoid

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-13 Thread Hu, Jiayu
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Tuesday, April 13, 2021 7:33 PM > To: Hu, Jiayu ; dev@dpdk.org > Cc: Xia, Chenbo ; Wang, Yinan > ; Pai G, Sunil ; Jiang, Cheng1 > > Subject: Re: [PATCH v2 3/4] vhost: avoid deadlock on async register > > > > On 4/2/21 3:0

Re: [dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-13 Thread Maxime Coquelin
On 4/2/21 3:04 PM, Jiayu Hu wrote: > Users can register async copy device in vring_state_changed(), > when vhost queue is enabled. However, a deadlock occurs inside > rte_vhost_async_channel_register(), if VHOST_USER_F_PROTOCOL_FEATURES > is not supported, as vhost_user_msg_handler() takes vq->a

[dpdk-dev] [PATCH v2 3/4] vhost: avoid deadlock on async register

2021-04-01 Thread Jiayu Hu
Users can register async copy device in vring_state_changed(), when vhost queue is enabled. However, a deadlock occurs inside rte_vhost_async_channel_register(), if VHOST_USER_F_PROTOCOL_FEATURES is not supported, as vhost_user_msg_handler() takes vq->access_lock before calling vhost_user_set_vring