All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] vhost: fix VIRTIO_NET_F_MQ vhost_scsi breakage
@ 2018-01-31 17:46 Stefan Hajnoczi
  2018-01-31 17:46 ` [PATCH 1/2] vhost: add flag for built-in virtio_net.c driver Stefan Hajnoczi
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2018-01-31 17:46 UTC (permalink / raw)
  To: dev; +Cc: Maxime Coquelin, Yuanhan Liu, Stefan Hajnoczi

These patches fix a recent regression in librte_vhost that breaks the
vhost_scsi example application.  vhost_user.c assumes all devices are vhost net
backends when handling the VIRTIO_NET_F_MQ feature bit.  The code is triggered
by vhost scsi devices and causes virtqueues to be removed.  See Patch 2 for
details.

Patch 1 puts the infrastructure in place to distinguish between the built-in
virtio_net.c driver and generic vhost device backend usage.

Patch 2 fixes the regression by handling VIRTIO_NET_F_MQ only when the built-in
virtio_net.c driver is in use.

Stefan Hajnoczi (2):
  vhost: add flag for built-in virtio_net.c driver
  vhost: only drop vqs with built-in virtio_net.c driver

 lib/librte_vhost/vhost.h      |  3 +++
 lib/librte_vhost/socket.c     | 15 +++++++++++++++
 lib/librte_vhost/vhost.c      | 17 ++++++++++++++++-
 lib/librte_vhost/vhost_user.c |  3 ++-
 lib/librte_vhost/virtio_net.c | 14 ++++++++++++++
 5 files changed, 50 insertions(+), 2 deletions(-)

-- 
2.14.3

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-02-05 14:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31 17:46 [PATCH 0/2] vhost: fix VIRTIO_NET_F_MQ vhost_scsi breakage Stefan Hajnoczi
2018-01-31 17:46 ` [PATCH 1/2] vhost: add flag for built-in virtio_net.c driver Stefan Hajnoczi
2018-02-01 14:46   ` Yuanhan Liu
2018-01-31 17:46 ` [PATCH 2/2] vhost: only drop vqs with " Stefan Hajnoczi
2018-01-31 18:07   ` Maxime Coquelin
     [not found]     ` <20180201102428.GA5783@stefanha-x1.localdomain>
2018-02-01 12:49       ` Maxime Coquelin
2018-02-01 12:58 ` [PATCH 0/2] vhost: fix VIRTIO_NET_F_MQ vhost_scsi breakage Maxime Coquelin
2018-02-05 14:20   ` Ferruh Yigit
2018-02-01 14:46 ` Yuanhan Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.