Skip to content

virtio-net: Only enable userland vq if using tap backend

Eugenio Pérez qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio-net: Fix indentationhw/net/virtio-net.c+1 -10 replies
2/3virtio-net: Only enable userland vq if using tap backendhw/net/virtio-net.c hw/virtio/virtio.c include/hw/virtio/virtio.h+19 -87 replies
3/3virtio-net: Fix log messagehw/net/virtio-net.c+6 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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.

Tested with tap backend vhost=on and vhost=off, and with vp_vdpa modified to fail negotiation.

Eugenio Pérez (3):
virtio-net: Fix indentation
virtio-net: Only enable userland vq if using tap backend
virtio-net: Fix log message

 include/hw/virtio/virtio.h |  2 ++
 hw/net/virtio-net.c        | 17 +++++++++++------
 hw/virtio/virtio.c         | 21 +++++++++++++--------
 3 files changed, 26 insertions(+), 14 deletions(-)
Signature · 1 line
2.27.0