Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a18cc421 authored by Asias He's avatar Asias He Committed by Michael S. Tsirkin
Browse files

vhost-scsi: Enable VIRTIO_RING_F_EVENT_IDX



It was disabled as a workaround. Now userspace bits work fine with it.
The broken version was not ever committed to QEMU, I guess the same is
true for nlkt.

So, let's enable it.

Signed-off-by: default avatarAsias He <asias@redhat.com>
Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 7542a6b0
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -162,14 +162,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