Skip to contentSkip to conversation

PV driver for FC transport layer

RFC In review Jun Kamada 3 participants 12 messages Jun 29, 2007 – Jul 6, 2007

Subsystems (2)
lore
Share & tools
lore

Jun Kamada

author
#0 lore raw

cover PV driver for FC transport layer

Hi all,

We developed a prototype of para-virtual FC(Fibre Channel) SCSI driver. It's a extension of the "pv-scsi" driver, that Horikoshi-san posted on 16 May 2007 ([Xen-devel] [RFC] pv-scsi driver (scsiback/scsifront)), in order to support FC transport layer.

The FC extension mainly performs following processes.

1. Copies FC attributes stored in Dom0 to DomU at the driver initialization phase. The attributes are originally stored in "Scsi_Host", "scsi_target" and "fc_rport" structures.
2. When /sys/class/fc_*/*/* on DomU is accessed from user land, performs appropriate function on Dom0.

We expect your helpful comments especially at following point of view.

- What any other functions are required in order to behave as "complete" FC driver? (We are not familiar with FC driver.)
- This is the sub-question of above. Current prototype supports only "frontend driven" functions. What types of "backend driven" functions we have to support?

Any other comments are welcomed.

Best regards

-----
Jun Kamada
Linux Technology Development Div.
Server Systems Unit
Fujitsu Ltd.
[email protected]

author
#1 lore raw

RFC 1/4 PV driver for FC transport layer (config files for pv-scsi)

Jun Kamada
Linux Technology Development Div.
Server Systems Unit
Fujitsu Ltd.
[email protected]

# HG changeset patch
# User Jun Kamada <[email protected]>
# Date 1183107229 -32400
# Node ID 52f99cf7240f84e89740242828a3c09566139054 # Parent 3df04f34c4aa7679bf30a7fe6b46d8ccc0a004da modiy config

buildconfigs/linux-defconfig_xen_ia64 +4 -2
diff -r 3df04f34c4aa -r 52f99cf7240f buildconfigs/linux-defconfig_xen_ia64
@@ -511,8 +511,8 @@ CONFIG_SCSI_SYM53C8XX_MMIO=y
 CONFIG_SCSI_SYM53C8XX_MMIO=y
 # CONFIG_SCSI_IPR is not set
 CONFIG_SCSI_QLOGIC_1280=y
-# CONFIG_SCSI_QLA_FC is not set
-# CONFIG_SCSI_LPFC is not set
+CONFIG_SCSI_QLA_FC=y
+CONFIG_SCSI_LPFC=y
 # CONFIG_SCSI_DC395x is not set
 # CONFIG_SCSI_DC390T is not set
 # CONFIG_SCSI_DEBUG is not set
@@ -1659,6 +1659,7 @@ CONFIG_XEN_XENBUS_DEV=y
 CONFIG_XEN_XENBUS_DEV=y
 CONFIG_XEN_BACKEND=y
 CONFIG_XEN_BLKDEV_BACKEND=y
+CONFIG_XEN_SCSI_BACKEND=y
 CONFIG_XEN_BLKDEV_TAP=y
 CONFIG_XEN_NETDEV_BACKEND=y
 # CONFIG_XEN_NETDEV_PIPELINED_TRANSMITTER is not set
@@ -1671,6 +1672,7 @@ CONFIG_XEN_PCIDEV_BACKEND_CONTROLLER=y
 # CONFIG_XEN_PCIDEV_BE_DEBUG is not set
 CONFIG_XEN_TPMDEV_BACKEND=m
 CONFIG_XEN_BLKDEV_FRONTEND=y
+CONFIG_XEN_SCSI_FRONTEND=m
 CONFIG_XEN_NETDEV_FRONTEND=y
 CONFIG_XEN_FRAMEBUFFER=y
 CONFIG_XEN_KEYBOARD=y
buildconfigs/linux-defconfig_xen_x86_32 +6 -4
diff -r 3df04f34c4aa -r 52f99cf7240f buildconfigs/linux-defconfig_xen_x86_32
@@ -1083,13 +1083,13 @@ CONFIG_IDEDMA_AUTO=y
 # SCSI device support
 #
 CONFIG_RAID_ATTRS=m
-CONFIG_SCSI=m
+CONFIG_SCSI=y
 CONFIG_SCSI_PROC_FS=y
 
 #
 # SCSI support type (disk, tape, CD-ROM)
 #
-CONFIG_BLK_DEV_SD=m
+CONFIG_BLK_DEV_SD=y
 CONFIG_CHR_DEV_ST=m
 CONFIG_CHR_DEV_OSST=m
 CONFIG_BLK_DEV_SR=m
@@ -1184,8 +1184,8 @@ CONFIG_SCSI_IPR_TRACE=y
 CONFIG_SCSI_IPR_TRACE=y
 CONFIG_SCSI_IPR_DUMP=y
 CONFIG_SCSI_QLOGIC_1280=m
-CONFIG_SCSI_QLA_FC=m
-CONFIG_SCSI_LPFC=m
+CONFIG_SCSI_QLA_FC=y
+CONFIG_SCSI_LPFC=y
 CONFIG_SCSI_DC395x=m
 CONFIG_SCSI_DC390T=m
 CONFIG_SCSI_NSP32=m
@@ -3253,6 +3253,7 @@ CONFIG_XEN_XENBUS_DEV=y
 CONFIG_XEN_XENBUS_DEV=y
 CONFIG_XEN_BACKEND=y
 CONFIG_XEN_BLKDEV_BACKEND=y
+CONFIG_XEN_SCSI_BACKEND=y
 CONFIG_XEN_BLKDEV_TAP=y
 CONFIG_XEN_NETDEV_BACKEND=y
 # CONFIG_XEN_NETDEV_PIPELINED_TRANSMITTER is not set
@@ -3264,6 +3265,7 @@ CONFIG_XEN_PCIDEV_BACKEND_VPCI=y
 # CONFIG_XEN_PCIDEV_BE_DEBUG is not set
 CONFIG_XEN_TPMDEV_BACKEND=m
 CONFIG_XEN_BLKDEV_FRONTEND=y
+CONFIG_XEN_SCSI_FRONTEND=m
 CONFIG_XEN_NETDEV_FRONTEND=y
 CONFIG_XEN_FRAMEBUFFER=y
 CONFIG_XEN_KEYBOARD=y
drivers/xen/Kconfig +16 -0
diff -r 3df04f34c4aa -r 52f99cf7240f drivers/xen/Kconfig
@@ -53,6 +53,14 @@ config XEN_BLKDEV_BACKEND
 	  The block-device backend driver allows the kernel to export its
 	  block devices to other guests via a high-performance shared-memory
 	  interface.
+
+config XEN_SCSI_BACKEND
+       tristate "SCSI backend driver"
+       depends on XEN_BACKEND
+       default y
+       help
+         The SCSI backend driver allows the kernel to export its SCSI HBAs
+         to other guests via a high-performance shared-memory interface.
 
 config XEN_BLKDEV_TAP
 	tristate "Block-device tap backend driver"
@@ -178,6 +186,14 @@ config XEN_BLKDEV_FRONTEND
 	  dedicated device-driver domain, or your master control domain
 	  (domain 0), then you almost certainly want to say Y here.
 
+config XEN_SCSI_FRONTEND
+	tristate "SCSI frontend driver"
+	depends on XEN && SCSI
+	default y
+	help
+	  The SCSI frontend driver allows the kernel to access SCSI HBAs
+	  within another guest OS.
+
 config XEN_NETDEV_FRONTEND
 	tristate "Network-device frontend driver"
 	depends on XEN && NET
drivers/xen/Makefile +2 -0
diff -r 3df04f34c4aa -r 52f99cf7240f drivers/xen/Makefile
@@ -9,10 +9,12 @@ obj-y	+= char/
 
 obj-y	+= util.o
 obj-$(CONFIG_XEN_BLKDEV_BACKEND)	+= blkback/
+obj-$(CONFIG_XEN_SCSI_BACKEND)		+= scsiback/
 obj-$(CONFIG_XEN_BLKDEV_TAP)		+= blktap/
 obj-$(CONFIG_XEN_NETDEV_BACKEND)	+= netback/
 obj-$(CONFIG_XEN_TPMDEV_BACKEND)	+= tpmback/
 obj-$(CONFIG_XEN_BLKDEV_FRONTEND)	+= blkfront/
+obj-$(CONFIG_XEN_SCSI_FRONTEND)		+= scsifront/
 obj-$(CONFIG_XEN_NETDEV_FRONTEND)	+= netfront/
 obj-$(CONFIG_XEN_PCIDEV_BACKEND)	+= pciback/
 obj-$(CONFIG_XEN_PCIDEV_FRONTEND)	+= pcifront/

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#2 lore raw

RFC 2/4 PV driver for FC transport layer (pv-scsi backend driver)

In reply to Jun Kamada

Jun Kamada
Linux Technology Development Div.
Server Systems Unit
Fujitsu Ltd.
[email protected]

# HG changeset patch
# User Jun Kamada <[email protected]>
# Date 1183108100 -32400
# Node ID 06db0e13731c650c5b2ddf6d8048f9c89d89a012 # Parent 52f99cf7240f84e89740242828a3c09566139054 add scsiback driver

drivers/xen/scsiback/Makefile new file +2 -0
diff -r 52f99cf7240f -r 06db0e13731c drivers/xen/scsiback/Makefile
@@ -0,0 +1,2 @@
+obj-$(CONFIG_XEN_SCSI_BACKEND)	+= scsibk.o
+scsibk-y			+= interface.o scsiback.o
drivers/xen/scsiback/common.h new file +103 -0

103 lines not on this page · raw message

drivers/xen/scsiback/interface.c new file +165 -0

165 lines not on this page · raw message

drivers/xen/scsiback/scsiback.c new file +716 -0

716 lines not on this page · raw message

include/public/io/scsiif.h new file +49 -0

49 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#3 lore raw

RFC 3/4 PV driver for FC transport layer (pv-scsi frontend driver)

In reply to Jun Kamada

Jun Kamada
Linux Technology Development Div.
Server Systems Unit
Fujitsu Ltd.
[email protected]

# HG changeset patch
# User Jun Kamada <[email protected]>
# Date 1183108159 -32400
# Node ID 0f169b36be81293df09f1c66b6284dc00270854f # Parent 06db0e13731c650c5b2ddf6d8048f9c89d89a012 add scsifront driver

drivers/xen/scsifront/Makefile new file +4 -0
diff -r 06db0e13731c -r 0f169b36be81 drivers/xen/scsifront/Makefile
@@ -0,0 +1,4 @@
+obj-$(CONFIG_XEN_SCSI_FRONTEND)	:= xenscsi.o
+
+xenscsi-objs := scsifront.o
+
drivers/xen/scsifront/scsifront.c new file +524 -0

524 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#4 lore raw

RFC 4/4 PV driver for FC transport layer (FC transport layer driver)

In reply to Jun Kamada

Jun Kamada
Linux Technology Development Div.
Server Systems Unit
Fujitsu Ltd.
[email protected]

# HG changeset patch
# User Jun Kamada <[email protected]>
# Date 1183114138 -32400
# Node ID 99d47e3f5430faa0014f95ef9810a34cf775befc # Parent 0f169b36be81293df09f1c66b6284dc00270854f FC transport layer extension for pv-scsi driver

drivers/scsi/scsi_transport_fc.c +18 -0
diff -r 0f169b36be81 -r 99d47e3f5430 drivers/scsi/scsi_transport_fc.c
@@ -253,6 +253,24 @@ struct fc_internal {
 };
 
 #define to_fc_internal(tmpl)	container_of(tmpl, struct fc_internal, t)
+
+#ifdef CONFIG_XEN_SCSI_FC
+struct fc_function_template *
+fc_shost2ft(struct Scsi_Host *shost)
+{
+	struct fc_internal	*i = to_fc_internal(shost->transportt);
+
+	return i->f;
+}
+
+void
+fc_update_ft(struct Scsi_Host *shost, struct fc_function_template *ft)
+{
+	struct fc_internal	*i = to_fc_internal(shost->transportt);
+
+	i->f = ft;
+}
+#endif
 
 static int fc_target_setup(struct transport_container *tc, struct device *dev,
 			   struct class_device *cdev)
drivers/xen/Kconfig +5 -0
diff -r 0f169b36be81 -r 99d47e3f5430 drivers/xen/Kconfig
@@ -194,6 +194,11 @@ config XEN_SCSI_FRONTEND
 	  The SCSI frontend driver allows the kernel to access SCSI HBAs
 	  within another guest OS.
 
+config XEN_SCSI_FC
+	tristate "SCSI Fibre Channel Support"
+	depends on XEN_SCSI_BACKEND || XEN_SCSI_FRONTEND
+	default y
+
 config XEN_NETDEV_FRONTEND
 	tristate "Network-device frontend driver"
 	depends on XEN && NET
drivers/xen/scsiback/Makefile +1 -0
diff -r 0f169b36be81 -r 99d47e3f5430 drivers/xen/scsiback/Makefile
@@ -1,2 +1,3 @@ obj-$(CONFIG_XEN_SCSI_BACKEND)	+= scsibk
 obj-$(CONFIG_XEN_SCSI_BACKEND)	+= scsibk.o
+obj-$(CONFIG_XEN_SCSI_FC)	+= fcback.o
 scsibk-y			+= interface.o scsiback.o
drivers/xen/scsiback/common.h +4 -0
diff -r 0f169b36be81 -r 99d47e3f5430 drivers/xen/scsiback/common.h
@@ -79,6 +79,10 @@ struct scsiback_info {
 	wait_queue_head_t wq;
 	unsigned int waiting_reqs;
 
+#ifdef CONFIG_XEN_SCSI_FC
+	void	*fcinfo;
+#endif
+
 	struct page **mmap_pages;
 };
 
drivers/xen/scsiback/fcback.c new file +724 -0

724 lines not on this page · raw message

drivers/xen/scsiback/interface.c +8 -0
diff -r 0f169b36be81 -r 99d47e3f5430 drivers/xen/scsiback/interface.c
@@ -33,6 +33,10 @@
 #include "common.h"
 #include <xen/evtchn.h>
 #include <linux/kthread.h>
+
+#ifdef CONFIG_XEN_SCSI_FC
+extern void		fcback_connection_unsetup(struct scsiback_info *);
+#endif
 
 static kmem_cache_t *scsiback_cachep;
 
@@ -130,6 +134,10 @@ free_vm:
 
 void scsiback_disconnect(struct scsiback_info *info)
 {
+#ifdef CONFIG_XEN_SCSI_FC
+	fcback_connection_unsetup(info);
+#endif
+	
 	if (info->kthread) {
 		kthread_stop(info->kthread);
 		info->kthread = NULL;
drivers/xen/scsiback/scsiback.c +23 -0
diff -r 0f169b36be81 -r 99d47e3f5430 drivers/xen/scsiback/scsiback.c
@@ -45,6 +45,10 @@
 
 #define INVALID_GRANT_HANDLE	0xFFFF
 
+#ifdef CONFIG_XEN_SCSI_FC
+extern int	fcback_connection_setup(struct scsiback_info *);
+#endif
+
 typedef struct {
 	struct scsiback_info *info;
 	unsigned long rqid;
@@ -536,6 +540,18 @@ static int scsiback_connect(struct scsib
 		xenbus_dev_error(info->dev, err, "start scsiif");
 	}
 
+#ifdef CONFIG_XEN_SCSI_FC
+	{
+		int	ret;
+
+		if ((ret = fcback_connection_setup(info)) != 0) {
+			printk(KERN_ERR "<<<%s: fcback_setup() error>>>\n",
+			       __FUNCTION__);
+			return ret;
+		}
+	}
+#endif	
+	
 	return 0;
 }
 
@@ -674,6 +690,13 @@ static int __init scsiback_init(void)
 	if (!is_running_on_xen())
 		return -ENODEV;
 
+#ifdef CONFIG_XEN_SCSI_FC
+	if (!is_initial_xendomain()) {
+		printk(KERN_ERR "<<<%s: Not on a Dom0>>>\n", __FUNCTION__);
+		return -1;
+	}
+#endif
+
 	mmap_pages = CAN_QUEUE * SG_TABLESIZE;
 
 	pending_reqs          = kmalloc(sizeof(pending_reqs[0]) *
drivers/xen/scsifront/Makefile +1 -0
diff -r 0f169b36be81 -r 99d47e3f5430 drivers/xen/scsifront/Makefile
@@ -1,4 +1,5 @@ obj-$(CONFIG_XEN_SCSI_FRONTEND)	:= xensc
 obj-$(CONFIG_XEN_SCSI_FRONTEND)	:= xenscsi.o
+obj-$(CONFIG_XEN_SCSI_FC)	+= fcfront.o
 
 xenscsi-objs := scsifront.o
 
drivers/xen/scsifront/fc.h new file +229 -0

229 lines not on this page · raw message

drivers/xen/scsifront/fcfront.c new file +1027 -0

1,027 lines not on this page · raw message

drivers/xen/scsifront/scsifront.c +57 -0

107 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw
In reply to Jun Kamada
Quoted 1 line

We developed a prototype of para-virtual FC(Fibre Channel) SCSI

driver.

Quoted 3 lines

It's a extension of the "pv-scsi" driver, that Horikoshi-san posted on 16 May 2007 ([Xen-devel] [RFC] pv-scsi driver (scsiback/scsifront)), in order to support FC transport layer.

I'm struggling slightly to understand the usage scenario planned for this stuff. Mapping a SCSI LUN through to a guest makes perfect sense (e.g. for performing SCSI reservations, special SCSI commands like FUA, controlling a tape robot etc), but mapping a whole HBA through to a guest seems less useful -- usually it's the case you want to hide all that nastiness from the guest, taking care of multipath etc in dom0 rather than exposing it to the guest.

Have you a particular scenario in mind?

Thanks,
Ian

Quoted 6 lines

The FC extension mainly performs following processes.

1. Copies FC attributes stored in Dom0 to DomU at the driver initialization phase. The attributes are originally stored in "Scsi_Host", "scsi_target" and "fc_rport" structures.
2. When /sys/class/fc_*/*/* on DomU is accessed from user land,

performs

Quoted 5 lines

appropriate function on Dom0.

We expect your helpful comments especially at following point of view.

- What any other functions are required in order to behave as

"complete"

Quoted 3 lines

FC driver? (We are not familiar with FC driver.)
- This is the sub-question of above. Current prototype supports only "frontend driven" functions. What types of "backend driven"

functions

Quoted 19 lines

we have to support?

Any other comments are welcomed.

Best regards

-----
Jun Kamada
Linux Technology Development Div.
Server Systems Unit
Fujitsu Ltd.
[email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#6 lore raw

Hi Ian-san,

Thank you for your reply.

Quoted 14 lines · On Tue, 3 Jul 2007 01:07:04 +0100 "Ian Pratt" <[email protected]> wrote:
Quoted 1 line

We developed a prototype of para-virtual FC(Fibre Channel) SCSI

driver.

Quoted 3 lines

It's a extension of the "pv-scsi" driver, that Horikoshi-san posted on 16 May 2007 ([Xen-devel] [RFC] pv-scsi driver (scsiback/scsifront)), in order to support FC transport layer.

I'm struggling slightly to understand the usage scenario planned for this stuff. Mapping a SCSI LUN through to a guest makes perfect sense (e.g. for performing SCSI reservations, special SCSI commands like FUA, controlling a tape robot etc), but mapping a whole HBA through to a guest seems less useful -- usually it's the case you want to hide all that nastiness from the guest, taking care of multipath etc in dom0 rather than exposing it to the guest.

Quoted 1 line

Have you a particular scenario in mind?

We are planning to run a storage management software, which controls bindings storages on FC network to hosts, on group of guest domains. The software expect that each guest domain has each HBA, and control the HBA directly. (Ex. resetting SCSI bus and getting WWN, ...)

On the other hand, we consider that NPIV (N_Port ID Virtualization) technology makes it possible to assign whole "logical/virtual" HBA to each gueast domain.

That's our scenario in mind.

Best regards

-----
Jun Kamada
Linux Technology Development Div.
Server Systems Unit
Fujitsu Ltd.
[email protected]

#7 lore raw

From: Jun Kamada <[email protected]>
Subject: Re: [Xen-devel] [RFC] [0/4] PV driver for FC transport layer
Date: Wed, 04 Jul 2007 20:03:32 +0900

Quoted 21 lines

Hi Ian-san,

Thank you for your reply.

Quoted 14 lines · On Tue, 3 Jul 2007 01:07:04 +0100 "Ian Pratt" <[email protected]> wrote:
Quoted 1 line

We developed a prototype of para-virtual FC(Fibre Channel) SCSI

driver.

Quoted 3 lines

It's a extension of the "pv-scsi" driver, that Horikoshi-san posted on 16 May 2007 ([Xen-devel] [RFC] pv-scsi driver (scsiback/scsifront)), in order to support FC transport layer.

I'm struggling slightly to understand the usage scenario planned for this stuff. Mapping a SCSI LUN through to a guest makes perfect sense (e.g. for performing SCSI reservations, special SCSI commands like FUA, controlling a tape robot etc), but mapping a whole HBA through to a guest seems less useful -- usually it's the case you want to hide all that nastiness from the guest, taking care of multipath etc in dom0 rather than exposing it to the guest.

Quoted 6 lines
Quoted 1 line

Have you a particular scenario in mind?

We are planning to run a storage management software, which controls bindings storages on FC network to hosts, on group of guest domains. The software expect that each guest domain has each HBA, and control the HBA directly. (Ex. resetting SCSI bus and getting WWN, ...)

How do you support storage management software that uses non-scsi?

author
#8 lore raw

Hi, Fujita-san,

Quoted 6 lines · On Fri, 06 Jul 2007 09:22:15 +0900 FUJITA Tomonori…
Quoted 4 lines

We are planning to run a storage management software, which controls bindings storages on FC network to hosts, on group of guest domains. The software expect that each guest domain has each HBA, and control the HBA directly. (Ex. resetting SCSI bus and getting WWN, ...)

How do you support storage management software that uses non-scsi?

Current our scope is only SCSI on FC.
What do you mean as the "non-scsi" ?

-----
Jun Kamada
Linux Technology Development Div.
Server Systems Unit
Fujitsu Ltd.
[email protected]

#9 lore raw

From: Jun Kamada <[email protected]>
Subject: Re: [Xen-devel] [RFC] [0/4] PV driver for FC transport layer
Date: Fri, 06 Jul 2007 15:44:16 +0900

Quoted 9 lines

Hi, Fujita-san,

Quoted 5 lines · On Fri, 06 Jul 2007 09:22:15 +0900 FUJITA Tomonori…
Quoted 4 lines

We are planning to run a storage management software, which controls bindings storages on FC network to hosts, on group of guest domains. The software expect that each guest domain has each HBA, and control the HBA directly. (Ex. resetting SCSI bus and getting WWN, ...)

Quoted 4 lines
Quoted 1 line

How do you support storage management software that uses non-scsi?

Current our scope is only SCSI on FC.
What do you mean as the "non-scsi" ?

James Smart also asked you guys about this at the previous submission:

http://lists.xensource.com/archives/html/xen-devel/2007-05/msg00689.html

---

Quoted 4 lines

We want to use SAN management software on guest OS. The software works on native(no VM) linux. So we think it is necesarry to have guest OS shown whether HBA card is FC or SCSI in the same way of native linux.

Well - depends on what/how your san mgmt works. If it's straight scsi, then it would be fine - but you can't talk to anything non-scsi and not enumerated by the hba. If it's layered on hbaapi, it does mean you want to talk FC, not just scsi, and now things change significantly.

author
#10 lore raw

Fujita-san,

I'm sorry if following may not be a straight answer for your question.

Please imagine a large IDC. In general, some guest domain groups, which have different storage managemnt policy, exist in the IDC. And, the each domain group would like to have own storage management software within the guest domain group.

We consider that the management software requires at least following function to platform the software is running on.

- inform whether the currently focussed storage device or HBA is pure SCSI or FC-SCSI.
- if FC-SCSI, inform FC attributes such as WWN to the software.

According to the information aquired, the storage managemant software can control bindings of the storage and the HBA.

Thanks,

Quoted 28 lines · On Fri, 06 Jul 2007 16:26:11 +0900 FUJITA Tomonori…

From: Jun Kamada <[email protected]>
Subject: Re: [Xen-devel] [RFC] [0/4] PV driver for FC transport layer
Date: Fri, 06 Jul 2007 15:44:16 +0900

Quoted 9 lines

Hi, Fujita-san,

Quoted 5 lines · On Fri, 06 Jul 2007 09:22:15 +0900 FUJITA Tomonori…
Quoted 4 lines

We are planning to run a storage management software, which controls bindings storages on FC network to hosts, on group of guest domains. The software expect that each guest domain has each HBA, and control the HBA directly. (Ex. resetting SCSI bus and getting WWN, ...)

Quoted 4 lines
Quoted 1 line

How do you support storage management software that uses non-scsi?

Current our scope is only SCSI on FC.
What do you mean as the "non-scsi" ?

James Smart also asked you guys about this at the previous submission:

http://lists.xensource.com/archives/html/xen-devel/2007-05/msg00689.html

---

Quoted 4 lines

We want to use SAN management software on guest OS. The software works on native(no VM) linux. So we think it is necesarry to have guest OS shown whether HBA card is FC or SCSI in the same way of native linux.

Quoted 4 lines

Well - depends on what/how your san mgmt works. If it's straight scsi, then it would be fine - but you can't talk to anything non-scsi and not enumerated by the hba. If it's layered on hbaapi, it does mean you want to talk FC, not just scsi, and now things change significantly.

Jun Kamada
Linux Technology Development Div.
Server Systems Unit
Fujitsu Ltd.
[email protected]

#11 lore raw
In reply to Ian Pratt

From: "Ian Pratt" <[email protected]>
Subject: RE: [Xen-devel] [RFC] [0/4] PV driver for FC transport layer
Date: Tue, 3 Jul 2007 01:07:04 +0100

Quoted 6 lines
Quoted 1 line

We developed a prototype of para-virtual FC(Fibre Channel) SCSI

driver.

Quoted 3 lines

It's a extension of the "pv-scsi" driver, that Horikoshi-san posted on 16 May 2007 ([Xen-devel] [RFC] pv-scsi driver (scsiback/scsifront)), in order to support FC transport layer.

Quoted 7 lines

I'm struggling slightly to understand the usage scenario planned for this stuff. Mapping a SCSI LUN through to a guest makes perfect sense (e.g. for performing SCSI reservations, special SCSI commands like FUA, controlling a tape robot etc), but mapping a whole HBA through to a guest seems less useful -- usually it's the case you want to hide all that nastiness from the guest, taking care of multipath etc in dom0 rather than exposing it to the guest.

Mapping a SCSI LUN through to a guest is far complicated since it needs the SCSI state machine.