From: Asias He Date: Tue, 7 May 2013 06:51:49 +0000 (+0800) Subject: vhost-scsi: Enable VIRTIO_RING_F_EVENT_IDX X-Git-Tag: v3.12-rc1~874^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a18cc421649dfdc21edb6c4c867dd05447d7df8c;p=kernel%2Fkernel-generic.git 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: Asias He Acked-by: Paolo Bonzini Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index 5179f7a..7014202 100644 --- a/drivers/vhost/scsi.c +++ b/drivers/vhost/scsi.c @@ -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