Skip to contentSkip to conversation

vhost-scsi: Enable VIRTIO_RING_F_EVENT_IDX

PATCH In review Asias He 2 participants 2 messages May 7, 2013

Subsystems (4)
lore
Share & tools
lore

Asias He

author
#0 lore raw

PATCH 1/1 vhost-scsi: Enable VIRTIO_RING_F_EVENT_IDX

It is disabled as a workaround. Now userspace bits works fine with it. So, let's enable it.

---
 drivers/vhost/scsi.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/vhost/scsi.c +1 -7
index d860b58..5531ebc 100644
@@ -160,14 +160,8 @@ enum {
 	VHOST_SCSI_VQ_IO = 2,
 };
 
-/*
- * VIRTIO_RING_F_EVENT_IDX seems broken. Not sure the bug is in
- * kernel but disabling it helps.
- * TODO: debug and remove the workaround.
- */
 enum {
-	VHOST_SCSI_FEATURES = (VHOST_FEATURES & (~VIRTIO_RING_F_EVENT_IDX)) |
-			      (1ULL << VIRTIO_SCSI_F_HOTPLUG)
+	VHOST_SCSI_FEATURES = VHOST_FEATURES | (1ULL << VIRTIO_SCSI_F_HOTPLUG)
 };
 
 #define VHOST_SCSI_MAX_TARGET	256
Signature · 1 line
1.8.1.4
maintainer Acked-by on v1 1/1
#1 lore raw

Il 07/05/2013 08:51, Asias He ha scritto:

Quoted 19 lines

It is disabled as a workaround. Now userspace bits works fine with it. So, let's enable it.

---
 drivers/vhost/scsi.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/vhost/scsi.c +0 -2
index d860b58..5531ebc 100644
@@ -160,14 +160,8 @@ enum {
 	VHOST_SCSI_VQ_IO = 2,
 };
 
-/*
- * VIRTIO_RING_F_EVENT_IDX seems broken. Not sure the bug is in

drivers/vhost/scsi.c enum { · line 167

Quoted 10 lines
drivers/vhost/scsi.c +1 -5
- * kernel but disabling it helps.
- * TODO: debug and remove the workaround.
- */
 enum {
-	VHOST_SCSI_FEATURES = (VHOST_FEATURES & (~VIRTIO_RING_F_EVENT_IDX)) |
-			      (1ULL << VIRTIO_SCSI_F_HOTPLUG)
+	VHOST_SCSI_FEATURES = VHOST_FEATURES | (1ULL << VIRTIO_SCSI_F_HOTPLUG)
 };
 
 #define VHOST_SCSI_MAX_TARGET	256

The broken version was not ever committed to QEMU, I guess the same is true for nlkt.

Paolo