Re: [PATCH 3/7] virtio-net: Only enable userland vq if using tap backend

2022-03-30 Thread Jason Wang
On Wed, Mar 30, 2022 at 2:33 PM Si-Wei Liu wrote: > > From: Eugenio Pérez > > Qemu falls back on userland handlers even if vhost-user and vhost-vdpa > cases. These assumes a tap device can handle the packets. > > If a vdpa device fail to start, it can trigger a sigsegv because of > that. Do not r

[PATCH 3/7] virtio-net: Only enable userland vq if using tap backend

2022-03-29 Thread Si-Wei Liu
From: Eugenio Pérez Qemu falls back on userland handlers even if vhost-user and vhost-vdpa cases. These assumes a tap device can handle the packets. If a vdpa device fail to start, it can trigger a sigsegv because of that. Do not resort on them unless actually possible. Signed-off-by: Eugenio P