Patchwork [14/16] vhost-scsi: enable vhost notifiers for multiple queues

login
register
mail settings
Submitter Zhiyong Wu
Date April 19, 2012, 2:39 a.m.
Message ID <1334803149-27379-15-git-send-email-zwu.kernel@gmail.com>
Download mbox | patch
Permalink /patch/153641/
State New
Headers show

Comments

Zhiyong Wu - April 19, 2012, 2:39 a.m.
From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
 hw/vhost-scsi.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/vhost-scsi.c b/hw/vhost-scsi.c
index 82e0a68..54e6216 100644
--- a/hw/vhost-scsi.c
+++ b/hw/vhost-scsi.c
@@ -64,6 +64,12 @@  int vhost_scsi_start(VHostSCSI *vs, VirtIODevice *vdev)
 
     vs->dev.nvqs = 3;
     vs->dev.vqs = vs->vqs;
+
+    ret = vhost_dev_enable_notifiers(&vs->dev, vdev);
+    if (ret < 0) {
+        return ret;
+    }
+
     ret = vhost_dev_start(&vs->dev, vdev);
     if (ret < 0) {
         return ret;