Skip to content

PV SCSI driver (scsiback/scsifront)

Tomonari Horikoshi xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4add scsi backend driverdrivers/xen/scsiback/Makefile drivers/xen/scsiback/common.h drivers/xen/scsiback/interface.c +2 more+1224 -00 replies
2/4add scsi frontend driverdrivers/xen/scsifront/Makefile drivers/xen/scsifront/common.h drivers/xen/scsifront/scsifront.c+726 -00 replies
3/4add scsi backend and frontend RING interfaceinclude/xen/interface/io/scsiif.h+89 -00 replies
4/4add scsihost interfacetools/examples/Makefile tools/examples/scsihost tools/examples/xen-backend.agent +5 more+195 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] PV SCSI driver (scsiback/scsifront)

Hi all.

We developped a first version PV SCSI.
(without a FC-SCSI driver by Kamada-san)

The change point is the following:
* implement python code
-> attach, detach, list support.
Usage
# xm scsihost-attach <Domain> scsi <SCSIHostno> # xm scsihost-detach <Domain> <SCSIHostno> # xm scsihost-list <Domain> <SCSIHostno> = scsi host number on Dom0

-> python config
scsihost = ['scsi,1', 'type,num']
type = "scsi" (type=fc is current work by Kamada-san) num = scsi host number on Dom0

* performance tunning
When many disks are connected with 1 HBA, many disk's I/O request will be issued to 1 RING.
In this case, it becomes RING_FULL at once.
We made two RINGs (like a VNIF) because IO request must not save in RING. RING is used only to pass the command.

Best regards,
Tomonari Horikoshi

Tomonari Horikoshi wrote:----------------------

Sent:    Wed, 16 May 2007 18:08:27 +0900
Subject: [Xen-devel] [RFC] pv-scsi driver (scsiback/scsifront)
Quoted 20 lines

Hi all.

We developped a pv-scsi driver that we refered Fujita-san's scsi-driver and blkback.
(see, http://www.xensource.com/files/xensummit_4/Xen_Summit_8_Matsumoto.pdf)

The pv-scsi driver's feature is as follow:
* Guest has dedicated SCSI-HBAs of Dom0.
* Guest can send scsi_cdb to the HBAs.
* Guest recognises the HBAs from hostno of xenstore.

Currentlly, We are developping FC version based on this.

* Future work:
* implement python code
* performance tunning
* attach, detach
* suspend, resume

snip ...