Skip to content

RFC Lift restriction about VDUSE net devices with CVQ

Eugenio Pérez lkml netdev virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 47 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtio_net: timeout control virtqueue commandsdrivers/net/virtio_net.c+10 -043 replies
2/2vduse: lift restriction about net devices with CVQdrivers/vdpa/vdpa_user/vduse_dev.c+0 -34 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/2] Lift restriction about VDUSE net devices with CVQ

An userland device implemented through VDUSE could take rtnl forever if the virtio-net driver is running on top of virtio_vdpa. Let's break the device if it does not return the buffer in a longer-than-assumible timeout.

A less agressive path can be taken to recover the device, like only resetting the control virtqueue. However, the state of the device after this action is taken races, as the vq could be reset after the device writes the OK. Leaving TODO anyway.

Eugenio Pérez (2):
virtio_net: timeout control virtqueue commands
vduse: lift restriction about net devices with CVQ

 drivers/net/virtio_net.c           | 10 ++++++++++
 drivers/vdpa/vdpa_user/vduse_dev.c |  3 ---
 2 files changed, 10 insertions(+), 3 deletions(-)
Signature · 1 line
2.51.0