summary refs log tree commit diff stats
path: root/include/hw/virtio/vhost-scsi.h
diff options
context:
space:
mode:
authorFelipe Franciosi <felipe@nutanix.com>2017-03-02 10:25:51 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-05-05 12:10:00 +0200
commit95615ce5a1beffff1a5dd3597d8cb6ba83f0010e (patch)
tree6c1a6c85be54a4d6e249a0ebaa94d46b1f01b38d /include/hw/virtio/vhost-scsi.h
parenteae0f543341b311038fa2d40350688c646880082 (diff)
downloadfocaccia-qemu-95615ce5a1beffff1a5dd3597d8cb6ba83f0010e.tar.gz
focaccia-qemu-95615ce5a1beffff1a5dd3597d8cb6ba83f0010e.zip
vhost-scsi: create a vhost-scsi-common abstraction
In order to introduce a new vhost-user-scsi host device type, it makes
sense to abstract part of vhost-scsi into a common parent class. This
commit does exactly that.

Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Message-Id: <1488479153-21203-3-git-send-email-felipe@nutanix.com>
Diffstat (limited to 'include/hw/virtio/vhost-scsi.h')
-rw-r--r--include/hw/virtio/vhost-scsi.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/hw/virtio/vhost-scsi.h b/include/hw/virtio/vhost-scsi.h
index 9fd63df12e..04658d14f5 100644
--- a/include/hw/virtio/vhost-scsi.h
+++ b/include/hw/virtio/vhost-scsi.h
@@ -18,6 +18,7 @@
 #include "hw/qdev.h"
 #include "hw/virtio/virtio-scsi.h"
 #include "hw/virtio/vhost.h"
+#include "hw/virtio/vhost-scsi-common.h"
 
 enum vhost_scsi_vq_list {
     VHOST_SCSI_VQ_CONTROL = 0,
@@ -30,15 +31,7 @@ enum vhost_scsi_vq_list {
         OBJECT_CHECK(VHostSCSI, (obj), TYPE_VHOST_SCSI)
 
 typedef struct VHostSCSI {
-    VirtIOSCSICommon parent_obj;
-
-    Error *migration_blocker;
-
-    struct vhost_dev dev;
-    int32_t bootindex;
-    int channel;
-    int target;
-    int lun;
+    VHostSCSICommon parent_obj;
 } VHostSCSI;
 
 #endif