From: Zhi Yong Wu <[email protected]>
Signed-off-by: Zhi Yong Wu <[email protected]>
---
hw/vhost-scsi.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
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;
--
1.7.6