On Thu, Aug 31, 2017 at 11:50:05AM +0200, Maxime Coquelin wrote:
> virtio_net device might be accessed while being reallocated
> in case of NUMA awareness.
>From data path? data path won't be enabled until all are ready, which is
at a stage after numa_realloc(). Or, am I miss something?
--yliu
> This case might be theoretical,
> but it will be needed anyway to protect vrings pages against
> invalidation.
>
> The virtio_net devs are now protected with a readers/writers
> lock, so that before reallocating the device, it is ensured
> that it is not being referenced by the processing threads.
>
> Signed-off-by: Maxime Coquelin <[email protected]>