diff options
Diffstat (limited to 'drivers/vhost/tcm_vhost.h')
| -rw-r--r-- | drivers/vhost/tcm_vhost.h | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/vhost/tcm_vhost.h b/drivers/vhost/tcm_vhost.h index 1d2ae7a60e1..514b9fda230 100644 --- a/drivers/vhost/tcm_vhost.h +++ b/drivers/vhost/tcm_vhost.h @@ -53,6 +53,7 @@ struct tcm_vhost_nacl {  	struct se_node_acl se_node_acl;  }; +struct vhost_scsi;  struct tcm_vhost_tpg {  	/* Vhost port target portal group tag for TCM */  	u16 tport_tpgt; @@ -70,6 +71,8 @@ struct tcm_vhost_tpg {  	struct tcm_vhost_tport *tport;  	/* Returned by tcm_vhost_make_tpg() */  	struct se_portal_group se_tpg; +	/* Pointer back to vhost_scsi, protected by tv_tpg_mutex */ +	struct vhost_scsi *vhost_scsi;  };  struct tcm_vhost_tport { @@ -83,6 +86,13 @@ struct tcm_vhost_tport {  	struct se_wwn tport_wwn;  }; +struct tcm_vhost_evt { +	/* event to be sent to guest */ +	struct virtio_scsi_event event; +	/* event list, serviced from vhost worker thread */ +	struct llist_node list; +}; +  /*   * As per request from MST, keep TCM_VHOST related ioctl defines out of   * linux/vhost.h (user-space) for now.. @@ -113,3 +123,6 @@ struct vhost_scsi_target {  #define VHOST_SCSI_CLEAR_ENDPOINT _IOW(VHOST_VIRTIO, 0x41, struct vhost_scsi_target)  /* Changing this breaks userspace. */  #define VHOST_SCSI_GET_ABI_VERSION _IOW(VHOST_VIRTIO, 0x42, int) +/* Set and get the events missed flag */ +#define VHOST_SCSI_SET_EVENTS_MISSED _IOW(VHOST_VIRTIO, 0x43, __u32) +#define VHOST_SCSI_GET_EVENTS_MISSED _IOW(VHOST_VIRTIO, 0x44, __u32)  |