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/7] pvSCSI driver

To: "Jun Kamada" <kama@xxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [Patch 0/7] pvSCSI driver
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Wed, 20 Feb 2008 14:58:48 +1100
Delivery-date: Tue, 19 Feb 2008 19:59:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080218190633.E761.EB2C8575@xxxxxxxxxxxxxx>
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: <20080218190633.E761.EB2C8575@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchyFrTCoEbB9eBbTtCL6Fy91KPjlABXbgng
Thread-topic: [Xen-devel] [Patch 0/7] pvSCSI driver
I think I've got it working under Debian Etch.

I'm now trying to develop a frontend driver for windows, and triggered a
BUG() on or around line 328 of scsiback.c, because I wasn't setting bus,
target, and lun in the request. This effectively breaks Dom0 (hotplug
scripts refused to work thereafter until a reboot), which means a rogue
DomU can crash Dom0. I think you should implement a more graceful
failure path.

Also, for what reason are the bus, target, and lun required in the
request? It look like that's a leftover from an earlier version and I
don't see that it is required now.


> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-
> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Jun Kamada
> Sent: Monday, 18 February 2008 21:11
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Cc: kama@xxxxxxxxxxxxxx
> Subject: [Xen-devel] [Patch 0/7] pvSCSI driver
> Hi all,
> I will post total seven patches for new pvSCSI driver on following
> E-mails.
> New features of the driver are as follows.
> - Support assignment of each SCSI device(LUN:Logical Unit Number) to
>   guest domains.
> - Can specify the SCSI device by three ways.(See below.)
> - Simplified RING mechanism between frontend and backend
>   (Previous version used two RINGs for frontend to backend
>   and backend to frontend communication respectively. This version
>   one RING as same as VBD.)
> [ How to use ]
> a.) by "xm" command
>     # xm scsi-attach <domain> <scsidevice>
> b.) by config file
>     vscsi=['scsidevice','scsidevice']
> You can specify "scsidevice" by three ways for both case.
> 1.) /dev/sdx or sdx, /dev/stx or stx, /dev/sgx or sgx
> 2.) scsi_id (result of "scsi_id -gu -s /block/sda")
>     Example: 36000b5d0006a0000006a025700400000
> 3.) host:chanel:target:lun
>     Example: 4:0:0:10
> Any comments are welcome.
> Best regards,
> -----
> Jun Kamada
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

Xen-devel mailing list