Re: [dpdk-dev] [PATCH] vhost:fix crash on port deletion and VM shutdown at same time

2020-02-05 Thread Maxime Coquelin
On 1/16/20 3:07 AM, Zhike Wang wrote: > The vhost_user_read_cb() and rte_vhost_driver_unregister() can be > called at the same time by 2 threads. Eg thread1 calls vhost_user_read_cb() > and removes the vsocket from conn_list, then thread2 calls > rte_vhost_driver_unregister() and frees the vsock

Re: [dpdk-dev] [PATCH] vhost:fix crash on port deletion and VM shutdown at same time

2020-02-04 Thread Maxime Coquelin
On 1/16/20 3:07 AM, Zhike Wang wrote: > The vhost_user_read_cb() and rte_vhost_driver_unregister() can be > called at the same time by 2 threads. Eg thread1 calls vhost_user_read_cb() > and removes the vsocket from conn_list, then thread2 calls > rte_vhost_driver_unregister() and frees the vsock

[dpdk-dev] [PATCH] vhost:fix crash on port deletion and VM shutdown at same time

2020-01-15 Thread Zhike Wang
The vhost_user_read_cb() and rte_vhost_driver_unregister() can be called at the same time by 2 threads. Eg thread1 calls vhost_user_read_cb() and removes the vsocket from conn_list, then thread2 calls rte_vhost_driver_unregister() and frees the vsocket since it is NOT in the conn_list. So thread1 w