Skip to contentSkip to conversation

Enhance XenAPI for pvSCSI

RFC PATCH In review Masaki Kanno 4 participants 7 messages Sep 3, 2008 – Sep 8, 2008 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 Enhance XenAPI for pvSCSI

Hi,

I would like to enhance XenAPI for pvSCSI.
At the beginning, I updated only the document of XenAPI. I'm going to implement XenAPI of pvSCSI along the document. Could you comment?

The following classes and RPCs are added by the enhancement.
Classes:
- VSCSI class
This is a class for virtual SCSI devices.
- PSCSI class
This is a class for physical SCSI devices.

RPCs:
- VSCSI class
-- get_all
A list of all VSCSIs known to the system is gotten.
-- get_uuid
An UUID of the VSCSI is gotten.
-- get_VM
A VM ref of the VSCSI is gotten.
-- get_PSCSI
A PSCSI ref of the VSCSI is gotten.
-- get_virtual_host
A virtual host number of the VSCSI is gotten.
-- get_virtual_channel
A virtual channel number of the VSCSI is gotten.
-- get_virtual_target
A virtual target number of the VSCSI is gotten.
-- get_virtual_lun
A virtual logical unit number of the VSCSI is gotten.
-- get_virtual_HCTL
A virtual HCTL (string of "<host>:<channel>:<target>:<lun>") of the VSCSI is gotten.
-- create
A new VSCSI instance is created.
-- destroy
The VSCSI instance is destroyed.
-- get_by_uuid
A VSCSI ref of the UUID is gotten.
-- get_record
A VSCSI record of the VSCSI is gotten.

- PSCSI class
-- get_all
A list of all PSCSIs known to the system is gotten.
-- get_uuid
An UUID of the PSCSI is gotten.
-- get_host
A host ref of the PSCSI is gotten.
-- get_physical_host
A physical host number of the PSCSI is gotten.
-- get_physical_channel
A physical channel number of the PSCSI is gotten.
-- get_physical_target
A physical target number of the PSCSI is gotten.
-- get_physical_lun
A physical logical unit number of the PSCSI is gotten.
-- get_physical_HCTL
A physical HCTL (string of "<host>:<channel>:<target>:<lun>") of the PSCSI is gotten.
-- get_vendor_name
A vendor name of the PSCSI is gotten.
-- get_model
A model name of the PSCSI is gotten.
-- get_type_id
An ID of device types of the PSCSI is gotten. (If disk, the ID is 0. If tape, the ID is 1.)
-- get_type
A device type string of the PSCSI is gotten.
-- get_sg_name
A SCSI generic (sg) device name of the PSCSI is gotten.
-- get_revision
A revision string of the PSCSI is gotten.
-- get_scsi_id
A SCSI ID string of the PSCSI is gotten. The string is a result of 'scsi_id -gu -s'.
-- get_scsi_level
A SCSI level of the PSCSI is gotten.
-- get_by_uuid
A PSCSI ref of the UUID is gotten.
-- get_record
A PSCSI record of the PSCSI is gotten.

- VM class
-- get_VSCSIs
VSCSI refs of the VM are gotten.

- host class
-- get_PSCSIs
PSCSI refs of the host are gotten.

Best regards,
Kan

docs/xen-api/coversheet.tex +1 -0
diff -r 7eefe6399bcd docs/xen-api/coversheet.tex
@@ -51,6 +51,7 @@ Mike Day, IBM & Daniel Veillard, Red Hat
 Mike Day, IBM & Daniel Veillard, Red Hat \\
 Jim Fehlig, Novell & Tom Wilkie, University of Cambridge \\
 Jon Harrop, XenSource & Yosuke Iwamatsu, NEC \\
+Masaki Kanno, FUJITSU \\
 \end{tabular}
 \end{large}
 
docs/xen-api/revision-history.tex +9 -0
diff -r 7eefe6399bcd docs/xen-api/revision-history.tex
@@ -56,5 +56,14 @@
     \end{flushleft}
    \end{minipage}\\
   \hline
+  1.0.7 & 2nd Sep. 08 & M. Kanno &
+   \begin{minipage}[t]{7cm}
+    \begin{flushleft}
+     Added definitions of new classes VSCSI and PSCSI. Updated the table
+     and the diagram representing relationships between classes.
+     Added host.PSCSIs and VM.VSCSIs fields.
+    \end{flushleft}
+   \end{minipage}\\
+  \hline
  \end{tabular}
 \end{center}
docs/xen-api/xenapi-coversheet.tex +2 -2
diff -r 7eefe6399bcd docs/xen-api/xenapi-coversheet.tex
@@ -17,12 +17,12 @@
 \newcommand{\coversheetlogo}{xen.eps}
 
 %% Document date
-\newcommand{\datestring}{24th July 2008}
+\newcommand{\datestring}{2nd September 2008}
 
 \newcommand{\releasestatement}{Stable Release}
 
 %% Document revision
-\newcommand{\revstring}{API Revision 1.0.6}
+\newcommand{\revstring}{API Revision 1.0.7}
 
 %% Document authors
 \newcommand{\docauthors}{
docs/xen-api/xenapi-datamodel-graph.dot +8 -3
diff -r 7eefe6399bcd docs/xen-api/xenapi-datamodel-graph.dot
@@ -12,9 +12,11 @@ digraph "Xen-API Class Diagram" {
 digraph "Xen-API Class Diagram" {
 fontname="Verdana";
 
-node [ shape=box ]; session VM host network VIF PIF SR VDI VBD PBD user XSPolicy ACMPolicy;
-node [shape=ellipse]; PIF_metrics VIF_metrics VM_metrics VBD_metrics PBD_metrics VM_guest_metrics host_metrics;
-node [shape=box]; DPCI PPCI host_cpu console VTPM
+node [ shape=box ]; session VM host network VIF PIF SR VDI VBD PBD user;
+node [ shape=box ]; XSPolicy ACMPolicy DPCI PPCI host_cpu console VTPM;
+node [ shape=box ]; VSCSI PSCSI;
+node [ shape=ellipse ]; VM_metrics VM_guest_metrics host_metrics;
+node [ shape=ellipse ]; PIF_metrics VIF_metrics VBD_metrics PBD_metrics;
 session -> host [ arrowhead="none" ]
 session -> user [ arrowhead="none" ]
 VM -> VM_metrics [ arrowhead="none" ]
@@ -41,4 +43,7 @@ DPCI -> VM [ arrowhead="none", arrowtail
 DPCI -> VM [ arrowhead="none", arrowtail="crow" ]
 DPCI -> PPCI [ arrowhead="none" ]
 PPCI -> host [ arrowhead="none", arrowtail="crow" ]
+VSCSI -> VM [ arrowhead="none", arrowtail="crow" ]
+VSCSI -> PSCSI [ arrowhead="none" ]
+PSCSI -> host [ arrowhead="none", arrowtail="crow" ]
 }
docs/xen-api/xenapi-datamodel.tex +1094 -0

1,136 lines not on this page · raw message

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

#1 lore raw

Hi,

Quoted 10 lines · Masaki Kanno

Hi,

I would like to enhance XenAPI for pvSCSI.
At the beginning, I updated only the document of XenAPI. I'm going to implement XenAPI of pvSCSI along the document. Could you comment?

The following classes and RPCs are added by the enhancement.
Classes:
- VSCSI class
This is a class for virtual SCSI devices.

It's nice to keep xen-api updated with new features :-)
One thing I want to point out is about the class name.
I think 'DSCSI' (direct scsi) is appropriate rather than 'VSCSI', because pvSCSI driver doesn't really provide virtual scsi luns but passes through scsi commands to real scsi luns, as far as I understand.

Regards,
-- Yosuke Iwamatsu

Quoted 95 lines

- PSCSI class
This is a class for physical SCSI devices.

RPCs:
- VSCSI class
-- get_all
A list of all VSCSIs known to the system is gotten.
-- get_uuid
An UUID of the VSCSI is gotten.
-- get_VM
A VM ref of the VSCSI is gotten.
-- get_PSCSI
A PSCSI ref of the VSCSI is gotten.
-- get_virtual_host
A virtual host number of the VSCSI is gotten.
-- get_virtual_channel
A virtual channel number of the VSCSI is gotten.
-- get_virtual_target
A virtual target number of the VSCSI is gotten.
-- get_virtual_lun
A virtual logical unit number of the VSCSI is gotten.
-- get_virtual_HCTL
A virtual HCTL (string of "<host>:<channel>:<target>:<lun>") of the VSCSI is gotten.
-- create
A new VSCSI instance is created.
-- destroy
The VSCSI instance is destroyed.
-- get_by_uuid
A VSCSI ref of the UUID is gotten.
-- get_record
A VSCSI record of the VSCSI is gotten.

- PSCSI class
-- get_all
A list of all PSCSIs known to the system is gotten.
-- get_uuid
An UUID of the PSCSI is gotten.
-- get_host
A host ref of the PSCSI is gotten.
-- get_physical_host
A physical host number of the PSCSI is gotten.
-- get_physical_channel
A physical channel number of the PSCSI is gotten.
-- get_physical_target
A physical target number of the PSCSI is gotten.
-- get_physical_lun
A physical logical unit number of the PSCSI is gotten.
-- get_physical_HCTL
A physical HCTL (string of "<host>:<channel>:<target>:<lun>") of the PSCSI is gotten.
-- get_vendor_name
A vendor name of the PSCSI is gotten.
-- get_model
A model name of the PSCSI is gotten.
-- get_type_id
An ID of device types of the PSCSI is gotten. (If disk, the ID is 0. If tape, the ID is 1.)
-- get_type
A device type string of the PSCSI is gotten.
-- get_sg_name
A SCSI generic (sg) device name of the PSCSI is gotten.
-- get_revision
A revision string of the PSCSI is gotten.
-- get_scsi_id
A SCSI ID string of the PSCSI is gotten. The string is a result of 'scsi_id -gu -s'.
-- get_scsi_level
A SCSI level of the PSCSI is gotten.
-- get_by_uuid
A PSCSI ref of the UUID is gotten.
-- get_record
A PSCSI record of the PSCSI is gotten.

- VM class
-- get_VSCSIs
VSCSI refs of the VM are gotten.

- host class
-- get_PSCSIs
PSCSI refs of the host are gotten.

Best regards,
Kan

------------------------------------------------------------------------

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

#2 lore raw

Hi Iwamatsu-san,

The pvSCSI driver provides virtualized SCSI tree to guest domains. (You can specify arbitrary IDs (Host:Channel:Target:Lun) mapping between Dom0 and the guests.)

In addition to that, some SCSI commands, for example REPORT_LUN, may be emulated on backend driver but simply passthroughed to physical device.

So, class name 'VSCSI' is appropriate, in my personal opinion.

Best regards,

Quoted 121 lines · On Fri, 05 Sep 2008 17:52:42 +0900 Yosuke Iwamatsu <[email protected]>…

Hi,

Quoted 10 lines · Masaki Kanno

Hi,

I would like to enhance XenAPI for pvSCSI.
At the beginning, I updated only the document of XenAPI. I'm going to implement XenAPI of pvSCSI along the document. Could you comment?

The following classes and RPCs are added by the enhancement.
Classes:
- VSCSI class
This is a class for virtual SCSI devices.

It's nice to keep xen-api updated with new features :-)
One thing I want to point out is about the class name.
I think 'DSCSI' (direct scsi) is appropriate rather than 'VSCSI', because pvSCSI driver doesn't really provide virtual scsi luns but passes through scsi commands to real scsi luns, as far as I understand.

Regards,
-- Yosuke Iwamatsu

Quoted 89 lines

- PSCSI class
This is a class for physical SCSI devices.

RPCs:
- VSCSI class
-- get_all
A list of all VSCSIs known to the system is gotten.
-- get_uuid
An UUID of the VSCSI is gotten.
-- get_VM
A VM ref of the VSCSI is gotten.
-- get_PSCSI
A PSCSI ref of the VSCSI is gotten.
-- get_virtual_host
A virtual host number of the VSCSI is gotten.
-- get_virtual_channel
A virtual channel number of the VSCSI is gotten.
-- get_virtual_target
A virtual target number of the VSCSI is gotten.
-- get_virtual_lun
A virtual logical unit number of the VSCSI is gotten.
-- get_virtual_HCTL
A virtual HCTL (string of "<host>:<channel>:<target>:<lun>") of the VSCSI is gotten.
-- create
A new VSCSI instance is created.
-- destroy
The VSCSI instance is destroyed.
-- get_by_uuid
A VSCSI ref of the UUID is gotten.
-- get_record
A VSCSI record of the VSCSI is gotten.

- PSCSI class
-- get_all
A list of all PSCSIs known to the system is gotten.
-- get_uuid
An UUID of the PSCSI is gotten.
-- get_host
A host ref of the PSCSI is gotten.
-- get_physical_host
A physical host number of the PSCSI is gotten.
-- get_physical_channel
A physical channel number of the PSCSI is gotten.
-- get_physical_target
A physical target number of the PSCSI is gotten.
-- get_physical_lun
A physical logical unit number of the PSCSI is gotten.
-- get_physical_HCTL
A physical HCTL (string of "<host>:<channel>:<target>:<lun>") of the PSCSI is gotten.
-- get_vendor_name
A vendor name of the PSCSI is gotten.
-- get_model
A model name of the PSCSI is gotten.
-- get_type_id
An ID of device types of the PSCSI is gotten. (If disk, the ID is 0. If tape, the ID is 1.)
-- get_type
A device type string of the PSCSI is gotten.
-- get_sg_name
A SCSI generic (sg) device name of the PSCSI is gotten.
-- get_revision
A revision string of the PSCSI is gotten.
-- get_scsi_id
A SCSI ID string of the PSCSI is gotten. The string is a result of 'scsi_id -gu -s'.
-- get_scsi_level
A SCSI level of the PSCSI is gotten.
-- get_by_uuid
A PSCSI ref of the UUID is gotten.
-- get_record
A PSCSI record of the PSCSI is gotten.

- VM class
-- get_VSCSIs
VSCSI refs of the VM are gotten.

- host class
-- get_PSCSIs
PSCSI refs of the host are gotten.

Best regards,
Kan

Quoted 6 lines

------------------------------------------------------------------------

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

Quoted 4 lines

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

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

A message that is not in the archive (sent off-list or not yet received): 20080908112241.8179.EB2C8575-+CUm20s59erQFUHtdCDX3A@public.gmane.org

#4 lore raw
Quoted 8 lines · Jun Kamada

Hi Iwamatsu-san,

The pvSCSI driver provides virtualized SCSI tree to guest domains. (You can specify arbitrary IDs (Host:Channel:Target:Lun) mapping between Dom0 and the guests.)

In addition to that, some SCSI commands, for example REPORT_LUN, may be emulated on backend driver but simply passthroughed to physical device.

So, class name 'VSCSI' is appropriate, in my personal opinion.

The guest sees a virtualized scsi host, a virtualized scsi tree but endpoint devices (luns) themselves are not virtualized, right? I'm under an impression that pvscsi is similer to pass-through pci and 'V' prefix is not appropriate for these half-virtualized, half-physical devices.

Below is my idea of naming xen-api classes:
a. If the device is trully virtualized, give 'V' prefix (VIF, VBD etc).
For example, a VIF has virtual mac address, virtual vendor name and virtual device name and the guest see nothing about physical nic devices. Actually, it is possible to create VIF devices even if the host doesn't have physical network devices.
b. If the device is half-virtualized, give 'D' prefix.
When using pass-through pci, host controllers, device trees, config spaces might be virtualized but the guest see physical device information like device id and vendor id, and directly access to registers. The host, of course, has to have physical devices and the device will be occupied while it is used by a guest.

I don't know details about pvscsi, but perphaps we had better categorize it as b.

Thanks,
-- Yosuke

Quoted 138 lines

Best regards,

Quoted 117 lines · On Fri, 05 Sep 2008 17:52:42 +0900 Yosuke Iwamatsu…

Hi,

Quoted 8 lines · Masaki Kanno

Hi,

I would like to enhance XenAPI for pvSCSI. At the beginning, I updated only the document of XenAPI. I'm going to implement XenAPI of pvSCSI along the document. Could you comment?

The following classes and RPCs are added by the enhancement.
Classes:
- VSCSI class
This is a class for virtual SCSI devices.

It's nice to keep xen-api updated with new features :-)
One thing I want to point out is about the class name.
I think 'DSCSI' (direct scsi) is appropriate rather than 'VSCSI', because pvSCSI driver doesn't really provide virtual scsi luns but passes through scsi commands to real scsi luns, as far as I understand.

Regards,
-- Yosuke Iwamatsu

Quoted 89 lines

- PSCSI class
This is a class for physical SCSI devices.

RPCs:
- VSCSI class
-- get_all
A list of all VSCSIs known to the system is gotten.
-- get_uuid
An UUID of the VSCSI is gotten.
-- get_VM
A VM ref of the VSCSI is gotten.
-- get_PSCSI
A PSCSI ref of the VSCSI is gotten.
-- get_virtual_host
A virtual host number of the VSCSI is gotten.
-- get_virtual_channel
A virtual channel number of the VSCSI is gotten.
-- get_virtual_target
A virtual target number of the VSCSI is gotten.
-- get_virtual_lun
A virtual logical unit number of the VSCSI is gotten.
-- get_virtual_HCTL
A virtual HCTL (string of "<host>:<channel>:<target>:<lun>") of the VSCSI is gotten.
-- create
A new VSCSI instance is created.
-- destroy
The VSCSI instance is destroyed.
-- get_by_uuid
A VSCSI ref of the UUID is gotten.
-- get_record
A VSCSI record of the VSCSI is gotten.

- PSCSI class
-- get_all
A list of all PSCSIs known to the system is gotten.
-- get_uuid
An UUID of the PSCSI is gotten.
-- get_host
A host ref of the PSCSI is gotten.
-- get_physical_host
A physical host number of the PSCSI is gotten.
-- get_physical_channel
A physical channel number of the PSCSI is gotten.
-- get_physical_target
A physical target number of the PSCSI is gotten.
-- get_physical_lun
A physical logical unit number of the PSCSI is gotten.
-- get_physical_HCTL
A physical HCTL (string of "<host>:<channel>:<target>:<lun>") of the PSCSI is gotten.
-- get_vendor_name
A vendor name of the PSCSI is gotten.
-- get_model
A model name of the PSCSI is gotten.
-- get_type_id
An ID of device types of the PSCSI is gotten. (If disk, the ID is 0. If tape, the ID is 1.)
-- get_type
A device type string of the PSCSI is gotten.
-- get_sg_name
A SCSI generic (sg) device name of the PSCSI is gotten.
-- get_revision
A revision string of the PSCSI is gotten.
-- get_scsi_id
A SCSI ID string of the PSCSI is gotten. The string is a result of 'scsi_id -gu -s'.
-- get_scsi_level
A SCSI level of the PSCSI is gotten.
-- get_by_uuid
A PSCSI ref of the UUID is gotten.
-- get_record
A PSCSI record of the PSCSI is gotten.

- VM class
-- get_VSCSIs
VSCSI refs of the VM are gotten.

- host class
-- get_PSCSIs
PSCSI refs of the host are gotten.

Best regards,
Kan

Quoted 6 lines

------------------------------------------------------------------------

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

Quoted 4 lines

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

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

#5 lore raw

Hi Yosuke and XenAPI developers,

Thanks for your opinion.
I was able to understand your opinion enough, so I believe that "DSCSI" is better than "VSCSI". But I'd like to hear opinions from XenAPI developers except you.

Is prefix of half-virtualized "D" or "V"?

Best regards,
Kan

Quoted 184 lines · Yosuke Iwamatsu
Quoted 11 lines · Jun Kamada

Hi Iwamatsu-san,

The pvSCSI driver provides virtualized SCSI tree to guest domains. (You can specify arbitrary IDs (Host:Channel:Target:Lun) mapping between Dom0 and the guests.)

In addition to that, some SCSI commands, for example REPORT_LUN, may be emulated on backend driver but simply passthroughed to physical device.

So, class name 'VSCSI' is appropriate, in my personal opinion.

The guest sees a virtualized scsi host, a virtualized scsi tree but endpoint devices (luns) themselves are not virtualized, right? I'm under an impression that pvscsi is similer to pass-through pci and 'V' prefix is not appropriate for these half-virtualized, half-physical devices.

Below is my idea of naming xen-api classes:
a. If the device is trully virtualized, give 'V' prefix (VIF, VBD etc).
For example, a VIF has virtual mac address, virtual vendor name and virtual device name and the guest see nothing about physical nic devices. Actually, it is possible to create VIF devices even if the host doesn't have physical network devices.
b. If the device is half-virtualized, give 'D' prefix.
When using pass-through pci, host controllers, device trees, config spaces might be virtualized but the guest see physical device information like device id and vendor id, and directly access to registers. The host, of course, has to have physical devices and the device will be occupied while it is used by a guest.

I don't know details about pvscsi, but perphaps we had better categorize it as b.

Thanks,
-- Yosuke

Quoted 132 lines

Best regards,

Quoted 119 lines · On Fri, 05 Sep 2008 17:52:42 +0900 Yosuke Iwamatsu <[email protected]>…

Hi,

Quoted 10 lines · Masaki Kanno

Hi,

I would like to enhance XenAPI for pvSCSI.
At the beginning, I updated only the document of XenAPI. I'm going to implement XenAPI of pvSCSI along the document. Could you comment?

The following classes and RPCs are added by the enhancement.
Classes:
- VSCSI class
This is a class for virtual SCSI devices.

It's nice to keep xen-api updated with new features :-)
One thing I want to point out is about the class name.
I think 'DSCSI' (direct scsi) is appropriate rather than 'VSCSI', because pvSCSI driver doesn't really provide virtual scsi luns but passes through scsi commands to real scsi luns, as far as I understand.

Regards,
-- Yosuke Iwamatsu

Quoted 89 lines

- PSCSI class
This is a class for physical SCSI devices.

RPCs:
- VSCSI class
-- get_all
A list of all VSCSIs known to the system is gotten.
-- get_uuid
An UUID of the VSCSI is gotten.
-- get_VM
A VM ref of the VSCSI is gotten.
-- get_PSCSI
A PSCSI ref of the VSCSI is gotten.
-- get_virtual_host
A virtual host number of the VSCSI is gotten.
-- get_virtual_channel
A virtual channel number of the VSCSI is gotten.
-- get_virtual_target
A virtual target number of the VSCSI is gotten.
-- get_virtual_lun
A virtual logical unit number of the VSCSI is gotten.
-- get_virtual_HCTL
A virtual HCTL (string of "<host>:<channel>:<target>:<lun>") of the VSCSI is gotten.
-- create
A new VSCSI instance is created.
-- destroy
The VSCSI instance is destroyed.
-- get_by_uuid
A VSCSI ref of the UUID is gotten.
-- get_record
A VSCSI record of the VSCSI is gotten.

- PSCSI class
-- get_all
A list of all PSCSIs known to the system is gotten.
-- get_uuid
An UUID of the PSCSI is gotten.
-- get_host
A host ref of the PSCSI is gotten.
-- get_physical_host
A physical host number of the PSCSI is gotten.
-- get_physical_channel
A physical channel number of the PSCSI is gotten.
-- get_physical_target
A physical target number of the PSCSI is gotten.
-- get_physical_lun
A physical logical unit number of the PSCSI is gotten.
-- get_physical_HCTL
A physical HCTL (string of "<host>:<channel>:<target>:<lun>") of the PSCSI is gotten.
-- get_vendor_name
A vendor name of the PSCSI is gotten.
-- get_model
A model name of the PSCSI is gotten.
-- get_type_id
An ID of device types of the PSCSI is gotten. (If disk, the ID is 0. If tape, the ID is 1.)
-- get_type
A device type string of the PSCSI is gotten.
-- get_sg_name
A SCSI generic (sg) device name of the PSCSI is gotten.
-- get_revision
A revision string of the PSCSI is gotten.
-- get_scsi_id
A SCSI ID string of the PSCSI is gotten. The string is a result of 'scsi_id -gu -s'.
-- get_scsi_level
A SCSI level of the PSCSI is gotten.
-- get_by_uuid
A PSCSI ref of the UUID is gotten.
-- get_record
A PSCSI record of the PSCSI is gotten.

- VM class
-- get_VSCSIs
VSCSI refs of the VM are gotten.

- host class
-- get_PSCSIs
PSCSI refs of the host are gotten.

Best regards,
Kan

Quoted 6 lines

------------------------------------------------------------------------

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

Quoted 4 lines

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

Quoted 8 lines

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

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

#6 lore raw
In reply to Yosuke Iwamatsu

Hi Yosuke,

Thanks for your comment.

As Kamada said, the pvSCSI driver emulates some SCSI commands, the pvSCSI driver does not always pass through SCSI commands. So I hesitate to call pvSCSI "direct".

Best regards,
Kan

Quoted 125 lines · Yosuke Iwamatsu

Hi,

Quoted 10 lines · Masaki Kanno

Hi,

I would like to enhance XenAPI for pvSCSI.
At the beginning, I updated only the document of XenAPI. I'm going to implement XenAPI of pvSCSI along the document. Could you comment?

The following classes and RPCs are added by the enhancement.
Classes:
- VSCSI class
This is a class for virtual SCSI devices.

It's nice to keep xen-api updated with new features :-)
One thing I want to point out is about the class name.
I think 'DSCSI' (direct scsi) is appropriate rather than 'VSCSI', because pvSCSI driver doesn't really provide virtual scsi luns but passes through scsi commands to real scsi luns, as far as I understand.

Regards,
-- Yosuke Iwamatsu

Quoted 89 lines

- PSCSI class
This is a class for physical SCSI devices.

RPCs:
- VSCSI class
-- get_all
A list of all VSCSIs known to the system is gotten.
-- get_uuid
An UUID of the VSCSI is gotten.
-- get_VM
A VM ref of the VSCSI is gotten.
-- get_PSCSI
A PSCSI ref of the VSCSI is gotten.
-- get_virtual_host
A virtual host number of the VSCSI is gotten.
-- get_virtual_channel
A virtual channel number of the VSCSI is gotten.
-- get_virtual_target
A virtual target number of the VSCSI is gotten.
-- get_virtual_lun
A virtual logical unit number of the VSCSI is gotten.
-- get_virtual_HCTL
A virtual HCTL (string of "<host>:<channel>:<target>:<lun>") of the VSCSI is gotten.
-- create
A new VSCSI instance is created.
-- destroy
The VSCSI instance is destroyed.
-- get_by_uuid
A VSCSI ref of the UUID is gotten.
-- get_record
A VSCSI record of the VSCSI is gotten.

- PSCSI class
-- get_all
A list of all PSCSIs known to the system is gotten.
-- get_uuid
An UUID of the PSCSI is gotten.
-- get_host
A host ref of the PSCSI is gotten.
-- get_physical_host
A physical host number of the PSCSI is gotten.
-- get_physical_channel
A physical channel number of the PSCSI is gotten.
-- get_physical_target
A physical target number of the PSCSI is gotten.
-- get_physical_lun
A physical logical unit number of the PSCSI is gotten.
-- get_physical_HCTL
A physical HCTL (string of "<host>:<channel>:<target>:<lun>") of the PSCSI is gotten.
-- get_vendor_name
A vendor name of the PSCSI is gotten.
-- get_model
A model name of the PSCSI is gotten.
-- get_type_id
An ID of device types of the PSCSI is gotten. (If disk, the ID is 0. If tape, the ID is 1.)
-- get_type
A device type string of the PSCSI is gotten.
-- get_sg_name
A SCSI generic (sg) device name of the PSCSI is gotten.
-- get_revision
A revision string of the PSCSI is gotten.
-- get_scsi_id
A SCSI ID string of the PSCSI is gotten. The string is a result of 'scsi_id -gu -s'.
-- get_scsi_level
A SCSI level of the PSCSI is gotten.
-- get_by_uuid
A PSCSI ref of the UUID is gotten.
-- get_record
A PSCSI record of the PSCSI is gotten.

- VM class
-- get_VSCSIs
VSCSI refs of the VM are gotten.

- host class
-- get_PSCSIs
PSCSI refs of the host are gotten.

Best regards,
Kan

Quoted 6 lines

------------------------------------------------------------------------

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

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

#7 lore raw

Hi Yosuke,

My mail seems to have crossed your mail. Let me think a little.

Best regards,
Kan

Quoted 144 lines · Masaki Kanno

Hi Yosuke,

Thanks for your comment.

As Kamada said, the pvSCSI driver emulates some SCSI commands, the pvSCSI driver does not always pass through SCSI commands. So I hesitate to call pvSCSI "direct".

Best regards,
Kan

Quoted 121 lines · Yosuke Iwamatsu

Hi,

Quoted 10 lines · Masaki Kanno

Hi,

I would like to enhance XenAPI for pvSCSI.
At the beginning, I updated only the document of XenAPI. I'm going to implement XenAPI of pvSCSI along the document. Could you comment?

The following classes and RPCs are added by the enhancement.
Classes:
- VSCSI class
This is a class for virtual SCSI devices.

It's nice to keep xen-api updated with new features :-)
One thing I want to point out is about the class name.
I think 'DSCSI' (direct scsi) is appropriate rather than 'VSCSI', because pvSCSI driver doesn't really provide virtual scsi luns but passes through scsi commands to real scsi luns, as far as I understand.

Regards,
-- Yosuke Iwamatsu

Quoted 89 lines

- PSCSI class
This is a class for physical SCSI devices.

RPCs:
- VSCSI class
-- get_all
A list of all VSCSIs known to the system is gotten.
-- get_uuid
An UUID of the VSCSI is gotten.
-- get_VM
A VM ref of the VSCSI is gotten.
-- get_PSCSI
A PSCSI ref of the VSCSI is gotten.
-- get_virtual_host
A virtual host number of the VSCSI is gotten.
-- get_virtual_channel
A virtual channel number of the VSCSI is gotten.
-- get_virtual_target
A virtual target number of the VSCSI is gotten.
-- get_virtual_lun
A virtual logical unit number of the VSCSI is gotten.
-- get_virtual_HCTL
A virtual HCTL (string of "<host>:<channel>:<target>:<lun>") of the VSCSI is gotten.
-- create
A new VSCSI instance is created.
-- destroy
The VSCSI instance is destroyed.
-- get_by_uuid
A VSCSI ref of the UUID is gotten.
-- get_record
A VSCSI record of the VSCSI is gotten.

- PSCSI class
-- get_all
A list of all PSCSIs known to the system is gotten.
-- get_uuid
An UUID of the PSCSI is gotten.
-- get_host
A host ref of the PSCSI is gotten.
-- get_physical_host
A physical host number of the PSCSI is gotten.
-- get_physical_channel
A physical channel number of the PSCSI is gotten.
-- get_physical_target
A physical target number of the PSCSI is gotten.
-- get_physical_lun
A physical logical unit number of the PSCSI is gotten.
-- get_physical_HCTL
A physical HCTL (string of "<host>:<channel>:<target>:<lun>") of the PSCSI is gotten.
-- get_vendor_name
A vendor name of the PSCSI is gotten.
-- get_model
A model name of the PSCSI is gotten.
-- get_type_id
An ID of device types of the PSCSI is gotten. (If disk, the ID is 0. If tape, the ID is 1.)
-- get_type
A device type string of the PSCSI is gotten.
-- get_sg_name
A SCSI generic (sg) device name of the PSCSI is gotten.
-- get_revision
A revision string of the PSCSI is gotten.
-- get_scsi_id
A SCSI ID string of the PSCSI is gotten. The string is a result of 'scsi_id -gu -s'.
-- get_scsi_level
A SCSI level of the PSCSI is gotten.
-- get_by_uuid
A PSCSI ref of the UUID is gotten.
-- get_record
A PSCSI record of the PSCSI is gotten.

- VM class
-- get_VSCSIs
VSCSI refs of the VM are gotten.

- host class
-- get_PSCSIs
PSCSI refs of the host are gotten.

Best regards,
Kan

Quoted 6 lines

------------------------------------------------------------------------

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

Quoted 4 lines

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

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