]> Git Repo - linux.git/commitdiff
tcm_vhost: Enable VIRTIO_SCSI_F_HOTPLUG
authorAsias He <[email protected]>
Thu, 25 Apr 2013 07:35:23 +0000 (15:35 +0800)
committerNicholas Bellinger <[email protected]>
Thu, 25 Apr 2013 08:07:58 +0000 (01:07 -0700)
Everything for hotplug is ready. Let's enable the feature bit.

Signed-off-by: Asias He <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
drivers/vhost/tcm_vhost.c

index 07217d818ad7a8496d586b8469cfe5cb0f02c52e..1677238d281f6f33ca45a9edecd8550ab1c2b2be 100644 (file)
@@ -66,7 +66,8 @@ enum {
  * TODO: debug and remove the workaround.
  */
 enum {
-       VHOST_SCSI_FEATURES = VHOST_FEATURES & (~VIRTIO_RING_F_EVENT_IDX)
+       VHOST_SCSI_FEATURES = (VHOST_FEATURES & (~VIRTIO_RING_F_EVENT_IDX)) |
+                             (1ULL << VIRTIO_SCSI_F_HOTPLUG)
 };
 
 #define VHOST_SCSI_MAX_TARGET  256
This page took 0.058622 seconds and 4 git commands to generate.