This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [PATCH 0/4] PV SCSI driver (scsiback/scsifront)

To: pasik@xxxxxx, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0/4] PV SCSI driver (scsiback/scsifront)
From: Tomonari Horikoshi <t.horikoshi@xxxxxxxxxxxxxx>
Date: Tue, 17 Jul 2007 18:57:48 +0900
Delivery-date: Tue, 17 Jul 2007 02:56:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070716104348.GW4106@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <6FC7C540B22298t.horikoshi@xxxxxxxxxxxxxx> <20070716104348.GW4106@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Pasi-san.

Thanks for your comment.

Pasi wrote:----------------------
Sent:    Mon, 16 Jul 2007 13:43:48 +0300
Subject: Re: [Xen-devel] [PATCH 0/4] PV SCSI driver (scsiback/scsifront)

> On Fri, Jul 13, 2007 at 08:26:46PM +0900, Tomonari Horikoshi wrote:
> > 
> > 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
> > 
> Hi!
> Can you tell more about this patch..
> The whole HBA is mapped to the guest.. Is the access to the devices on that
> HBA exclusive for the guest, or can some of the devices be used on dom0 and
> some on domU ?
> Any plans to write single lun/id mapping code? 
> -- Pasi

This driver is not HBA exclusive for the guest.
Therefore, another guest cannot use the device on same HBA. 

We will develop the method to allocate to the guest by the unit of targetid.


The Backend driver is issuing SCSI CDB to the Native SCSI as follows,
  * It gets "struct scsi_device" by using "scsi_device_lookup()".
    At this time, the host_no uses the number of Native of backend domain.
    Besides (target_id, channel_id, lun_id), it uses the number sent from
  * It map DMA by using granttable.(like a VBD)
  * It issues the SCSI command by "blk_execute_rq_nowait()" by using 
    guest's SCSI CDB.

Best regards,
Tomonari Horikoshi

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>