virtio-net: Only enable userland vq if using tap backend
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | virtio-net: Fix indentationhw/ | +1 | 0 replies | |
| 2/3 | virtio-net: Only enable userland vq if using tap backendhw/ hw/ include/ | +19 | 7 replies | |
| 3/3 | virtio-net: Fix log messagehw/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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