RE: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf

2022-07-09 Thread Srivastava, Vijay
>-Original Message- >From: David Marchand >Sent: Friday, July 8, 2022 1:43 PM >To: abhimanyu.sa...@xilinx.com; vsriv...@xilinx.com >Cc: Maxime Coquelin ; dev ; >Xia, Chenbo ; Andrew Rybchenko >; Saini, Abhimanyu > >Subject: Re: [PATCH] vdpa/sfc: resolve race be

Re: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf

2022-07-08 Thread Maxime Coquelin
ginal Message- From: Maxime Coquelin Sent: Friday, July 8, 2022 2:55 PM To: abhimanyu.sa...@xilinx.com; dev@dpdk.org Cc: chenbo@intel.com; andrew.rybche...@oktetlabs.ru; Saini, Abhimanyu Subject: Re: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf [CAUTION: External Email] O

RE: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf

2022-07-08 Thread Saini, Abhimanyu
rg Cc: chenbo@intel.com; andrew.rybche...@oktetlabs.ru; Saini, Abhimanyu Subject: Re: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf [CAUTION: External Email] On 7/8/22 11:23, Maxime Coquelin wrote: > > > On 7/6/22 11:24, abhimanyu.sa...@xilinx.com wrote: >> F

Re: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf

2022-07-08 Thread Maxime Coquelin
On 7/8/22 11:23, Maxime Coquelin wrote: On 7/6/22 11:24, abhimanyu.sa...@xilinx.com wrote: From: Abhimanyu Saini libvhost calls dev_conf() before prosessing the VHOST_USER_SET_VRING_CALL message for the last VQ. So this message is processed after dev_conf() returns. However, the dev_conf

Re: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf

2022-07-08 Thread Maxime Coquelin
On 7/6/22 11:24, abhimanyu.sa...@xilinx.com wrote: From: Abhimanyu Saini libvhost calls dev_conf() before prosessing the VHOST_USER_SET_VRING_CALL message for the last VQ. So this message is processed after dev_conf() returns. However, the dev_conf() function spawns a thread to set rte_vhos

Re: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf

2022-07-08 Thread David Marchand
Hello Abhimanyu, Vijay, On Thu, Jul 7, 2022 at 2:38 PM Maxime Coquelin wrote: > On 7/6/22 11:24, abhimanyu.sa...@xilinx.com wrote: > > From: Abhimanyu Saini > > > > libvhost calls dev_conf() before prosessing the > > VHOST_USER_SET_VRING_CALL message for the last VQ. So > > this message is proce

Re: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf

2022-07-07 Thread Maxime Coquelin
On 7/6/22 11:24, abhimanyu.sa...@xilinx.com wrote: From: Abhimanyu Saini libvhost calls dev_conf() before prosessing the VHOST_USER_SET_VRING_CALL message for the last VQ. So this message is processed after dev_conf() returns. However, the dev_conf() function spawns a thread to set rte_vhos

Re: [PATCH] vdpa/sfc: resolve race between libvhost and dev_conf

2022-07-06 Thread Maxime Coquelin
Hi Abhimanyu, On 7/6/22 11:24, abhimanyu.sa...@xilinx.com wrote: From: Abhimanyu Saini libvhost calls dev_conf() before prosessing the VHOST_USER_SET_VRING_CALL message for the last VQ. So this message is processed after dev_conf() returns. However, the dev_conf() function spawns a thread to

[PATCH] vdpa/sfc: resolve race between libvhost and dev_conf

2022-07-06 Thread abhimanyu.saini
From: Abhimanyu Saini libvhost calls dev_conf() before prosessing the VHOST_USER_SET_VRING_CALL message for the last VQ. So this message is processed after dev_conf() returns. However, the dev_conf() function spawns a thread to set rte_vhost_host_notifier_ctrl() before returning control to libvh