qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 03/16] virtio-scsi: Add vhost_vring_target ioctl str


From: zwu . kernel
Subject: [Qemu-devel] [PATCH 03/16] virtio-scsi: Add vhost_vring_target ioctl struct
Date: Thu, 19 Apr 2012 10:38:56 +0800

From: Stefan Hajnoczi <address@hidden>

The vhost-scsi device is associated with a tcm_vhost target using the
VHOST_SCSI_SET_ENDPOINT and VHOST_SCSI_CLEAR_ENDPOINT ioctls that take a
wwpn and tpgt.

Signed-off-by: Stefan Hajnoczi <address@hidden>
---
 hw/virtio-scsi.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/hw/virtio-scsi.h b/hw/virtio-scsi.h
index 895f620..9cddacb 100644
--- a/hw/virtio-scsi.h
+++ b/hw/virtio-scsi.h
@@ -33,6 +33,12 @@ struct VirtIOSCSIConf {
     DEFINE_PROP_UINT32("max_sectors", _state, _conf_field.max_sectors, 
0xFFFF), \
     DEFINE_PROP_UINT32("cmd_per_lun", _state, _conf_field.cmd_per_lun, 128)
 
+/* For VHOST_SCSI_SET_ENDPOINT/VHOST_SCSI_CLEAR_ENDPOINT ioctl */
+struct vhost_vring_target {
+    unsigned char vhost_wwpn[224];
+    unsigned short vhost_tpgt;
+};
+
 typedef struct {
     /* The tcm_vhost wwpn and tgpt */
     char *wwpn;
-- 
1.7.6




reply via email to

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