[dpdk-dev] [PATCH v2] net/virtio: fix add pointer checking for rxvq
Maxime Coquelin
maxime.coquelin at redhat.com
Thu May 24 14:33:05 CEST 2018
On 05/24/2018 05:51 PM, zhiyong.yang at intel.com wrote:
> For virtio-user server mode, one use case comes across segmentation fault.
> step 1: Launch vhost side as client firstly.
> step 2: launch virtio-user side as server.
>
> The cause is: after registering virtio_interrupt_handler into
> eal-intr-thread, two threads (main thread and eal-intr-thread) have
> sync issues, so add rxvq pointer checking in function virtio_notify_peers
> to decide if the code can continue.
>
> Fixes: bd8f50a45d0f ("net/virtio-user: support server mode")
> Cc: stable at dpdk.org
> Cc: maxime.coquelin at redhat.com
> Cc: tiwei.bie at intel.com
> Cc: lei.a.yao at intel.com
> Cc: ferruh.yigit at intel.com
>
> Signed-off-by: Zhiyong Yang <zhiyong.yang at intel.com>
> Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
>
> Change in V2:
> change title prefix from net/virtio-user to net/virtio.
>
> drivers/net/virtio/virtio_ethdev.c | 3 +++
> 1 file changed, 3 insertions(+)
Applied to dpdk-next-virtio/master.
Thanks,
Maxime
More information about the dev
mailing list