[v2,0/3] virtio-user: fix virtio-user server mode
mbox series

Message ID 20201020152052.389446-1-amorenoz@redhat.com
Headers show
Series
  • virtio-user: fix virtio-user server mode
Related show

Message

Adrian Moreno Oct. 20, 2020, 3:20 p.m. UTC
This series addresses some issues identified in the virtio-user driver
when configured in server mode.

Firstly, properly identify the backend type in this mode.

Secondly, ensure no get/set status commands are sent before protocol
feature negotiation to avoid sending them to a backend that does not support them

And finally, add get/set status as per virtio spec so that it can work with
modern vhost-user backends that rely on this message to start the device.

--
v1->v2:
Added patch 2 and 3 addressing additional issues
Check errno to select vhost-user backend and log the detected backend
type


Adrian Moreno (3):
  virtio-user: fix backend selection if stat fails
  virtio_user: don't set/get_status until FEATURES_OK
  virtio-user: set status on virtio-user reconnect

 drivers/net/virtio/virtio_user/vhost_user.c   | 10 ++++++----
 .../net/virtio/virtio_user/virtio_user_dev.c  |  7 +++++++
 .../net/virtio/virtio_user/virtio_user_dev.h  |  1 +
 drivers/net/virtio/virtio_user_ethdev.c       | 20 ++++++++++++++++---
 4 files changed, 31 insertions(+), 7 deletions(-)