Re: [dpdk-dev] [PATCH 1/3] vhost: do not realloc device and queues during running

2019-09-18 Thread Maxime Coquelin
On 8/19/19 1:34 PM, Tiwei Bie wrote: > When the device has been started, don't do the reallocation anymore. > Otherwise the pointers used in application threads can be invalidated > without proper protection. Instead of introducing a global lock to > protect the change of device pointers which w

[dpdk-dev] [PATCH 1/3] vhost: do not realloc device and queues during running

2019-08-19 Thread Tiwei Bie
When the device has been started, don't do the reallocation anymore. Otherwise the pointers used in application threads can be invalidated without proper protection. Instead of introducing a global lock to protect the change of device pointers which will hurt the performance, let's just do the real