aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/vhost/scsi.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index 5179f7aa1b0b..701420297225 100644
--- a/drivers/vhost/scsi.c
+++ b/drivers/vhost/scsi.c
@@ -162,14 +162,8 @@ enum {
162 VHOST_SCSI_VQ_IO = 2, 162 VHOST_SCSI_VQ_IO = 2,
163}; 163};
164 164
165/*
166 * VIRTIO_RING_F_EVENT_IDX seems broken. Not sure the bug is in
167 * kernel but disabling it helps.
168 * TODO: debug and remove the workaround.
169 */
170enum { 165enum {
171 VHOST_SCSI_FEATURES = (VHOST_FEATURES & (~VIRTIO_RING_F_EVENT_IDX)) | 166 VHOST_SCSI_FEATURES = VHOST_FEATURES | (1ULL << VIRTIO_SCSI_F_HOTPLUG)
172 (1ULL << VIRTIO_SCSI_F_HOTPLUG)
173}; 167};
174 168
175#define VHOST_SCSI_MAX_TARGET 256 169#define VHOST_SCSI_MAX_TARGET 256