qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC 5/5] vhost-user-scsi: send virtio status to the backen


From: Maxime Coquelin
Subject: [Qemu-devel] [RFC 5/5] vhost-user-scsi: send virtio status to the backend
Date: Fri, 16 Feb 2018 18:29:10 +0100

Suggested-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Maxime Coquelin <address@hidden>
---
 hw/scsi/vhost-user-scsi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/scsi/vhost-user-scsi.c b/hw/scsi/vhost-user-scsi.c
index 9389ed48e0..da36a3b7f5 100644
--- a/hw/scsi/vhost-user-scsi.c
+++ b/hw/scsi/vhost-user-scsi.c
@@ -58,6 +58,8 @@ static void vhost_user_scsi_set_status(VirtIODevice *vdev, 
uint8_t status)
     } else {
         vhost_scsi_common_stop(vsc);
     }
+
+    vhost_dev_set_virtio_status(&vsc->dev, status);
 }
 
 static void vhost_dummy_handle_output(VirtIODevice *vdev, VirtQueue *vq)
-- 
2.14.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]