Paravirtualized SCSI: Difference between revisions

From Xen
Jump to navigationJump to search
 
(4 intermediate revisions by the same user not shown)
Line 21: Line 21:
* linux-2.6.18-xen from XenProject.org contains both scsiback and scsifront.
* linux-2.6.18-xen from XenProject.org contains both scsiback and scsifront.
* Xen PV-on-HVM drivers ("unmodified_drivers" in Xen source tree) contains PVSCSI scsifront driver for Linux 2.6.18, 2.6.27 and 2.6.32.
* Xen PV-on-HVM drivers ("unmodified_drivers" in Xen source tree) contains PVSCSI scsifront driver for Linux 2.6.18, 2.6.27 and 2.6.32.
* SuSe SLES11 SP1 2.6.32 Xenlinux kernel (and later versions) has PVSCSI drivers.
* SUSE SLES11 SP1 2.6.32 Xenlinux kernel (and later versions) has PVSCSI drivers.
* SuSe SLES12 Xenlinux kernel has PVSCSI drivers.
* SUSE SLES12 Xenlinux kernel has PVSCSI drivers.
* Windows Xen GPLPV drivers have scsifront driver.
* Windows Xen GPLPV drivers have scsifront driver.


== Xen toolstack support for PVSCSI features ==
== Xen toolstack support for PVSCSI features ==
* xm/xend toolstack supports PVSCSI since Xen 3.3, up to Xen 4.4.
* xm/xend toolstack supports PVSCSI since Xen 3.3, up to Xen 4.4.
* xl / libxl toolstack currently does not yet have support for PVSCSI (as of Xen 4.5).
* xl / libxl toolstack currently does not yet have support for PVSCSI (as of Xen 4.7).


== Configuration ==
<!--
== NPIV support ==
=== libxl/xend ===
The syntax in domU.cfg is <code>vscsi=[ 'pdev,vdev[,options]', ... ]</code>
Please see the [[XenNPIV]] wiki page for more information.
'pdev' describes the physical device, preferable in a persistent format such as /dev/disk/by-*/*.
-->
'vdev' is the domU device in vHOST:CHANNEL:TARGET:LUN notation, all integers.
'options' lists additional flags which a backend may recognize.

=== xl/xm ===
<code>
xl scsi-attach domU 'pdev' 'vdev' ['options']

xl scsi-detach domU 'vdev'
</code>
=== libvirt ===
Very limited way to describe host device, just 'H:C:T:L' notation for pdev supported:
<code>
<hostdev mode='subsystem' type='scsi' managed='no' sgio='filtered' rawio='yes'>
<source>
<adapter name='scsi_host5'/>
<address bus='0' target='1' unit='0'/>
</source>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</hostdev>

</code>


== More information and links ==
== More information and links ==

Latest revision as of 14:43, 18 April 2016


Xen PVSCSI

Paravirtualized SCSI (PVSCSI) was added to Xen 3.3.0. PVSCSI allows high performance passthrough of SCSI devices (or LUNs) from dom0 to a Xen PV or HVM guest. PVSCSI can be used to passthrough a tape drive, tape autoloader or basicly any SCSI/FC device. By using PVSCSI the guest can have direct access to the SCSI device (required by for example some management tools). PVSCSI can also be used to passthrough multiple SCSI devices or the whole SCSI HBA.

Note that disks (any block device in dom0) can be passed to the Xen guest using the normal Xen blkback functionality, PVSCSI is not needed for that.

PVSCSI requirements

  • PVSCSI requires a scsiback backend driver in dom0 kernel.
  • PVSCSI requires a scsifront frontend driver in the guest kernel.
  • Xen 3.3.0 or newer.

PVSCSI driver availability

PVSCSI drivers can be found from at least the following Xen kernel trees:

  • Upstream Linux kernel version 3.18 (and later versions) includes Xen PVSCSI drivers, both xen-scsiback and xen-scsifront, out-of-the-box!
  • linux-2.6.18-xen from XenProject.org contains both scsiback and scsifront.
  • Xen PV-on-HVM drivers ("unmodified_drivers" in Xen source tree) contains PVSCSI scsifront driver for Linux 2.6.18, 2.6.27 and 2.6.32.
  • SUSE SLES11 SP1 2.6.32 Xenlinux kernel (and later versions) has PVSCSI drivers.
  • SUSE SLES12 Xenlinux kernel has PVSCSI drivers.
  • Windows Xen GPLPV drivers have scsifront driver.

Xen toolstack support for PVSCSI features

  • xm/xend toolstack supports PVSCSI since Xen 3.3, up to Xen 4.4.
  • xl / libxl toolstack currently does not yet have support for PVSCSI (as of Xen 4.7).

Configuration

libxl/xend

The syntax in domU.cfg is vscsi=[ 'pdev,vdev[,options]', ... ] 'pdev' describes the physical device, preferable in a persistent format such as /dev/disk/by-*/*. 'vdev' is the domU device in vHOST:CHANNEL:TARGET:LUN notation, all integers. 'options' lists additional flags which a backend may recognize.

xl/xm

xl scsi-attach domU 'pdev' 'vdev' ['options']

xl scsi-detach domU 'vdev'

libvirt

Very limited way to describe host device, just 'H:C:T:L' notation for pdev supported:

 <hostdev mode='subsystem' type='scsi' managed='no' sgio='filtered' rawio='yes'>
    <adapter name='scsi_host5'/>
    <address bus='0' target='1' unit='0'/>
  <readonly/>
  <address type='drive' controller='0' bus='0' target='0' unit='0'/>
 </hostdev>

More information and links