Re: [PATCH] tcm_vhost: Expose ABI version via VHOST_SCSI_GET_ABI_VERSION

2012-07-29 Thread Michael S. Tsirkin
On Wed, Jul 25, 2012 at 02:10:48PM -0700, Nicholas A. Bellinger wrote: > On Wed, 2012-07-25 at 16:10 +0300, Avi Kivity wrote: > > On 07/24/2012 11:45 PM, Nicholas A. Bellinger wrote: > > > > >> > diff --git a/drivers/vhost/tcm_vhost.h b/drivers/vhost/tcm_vhost.h > > >> > index e942df9..3d5378f 100

Re: [PATCH] tcm_vhost: Expose ABI version via VHOST_SCSI_GET_ABI_VERSION

2012-07-29 Thread Michael S. Tsirkin
On Thu, Jul 26, 2012 at 01:15:26PM -0700, Nicholas A. Bellinger wrote: > If there is a better way to handle ioctl compat I'd > certainly like to hear about it. You basically don't touch exiting commands, always add new ones. For example if you want to simply stop some ioctl from working for old

Re: [PATCH] tcm_vhost: Expose ABI version via VHOST_SCSI_GET_ABI_VERSION

2012-07-29 Thread Avi Kivity
On 07/26/2012 11:15 PM, Nicholas A. Bellinger wrote: >> > > Example..? If there is a better way to handle ioctl compat I'd > certainly like to hear about it. > r = ioctl(fd, KVM_CHECK_EXTENSION, KVM_CAP_ASSIGN_DEV_IRQ); if (r == -1) ... if (r) // ioctl(fd, KVM_ASSIGN_DEV_IRQ, ...) is

mpt2sas: disk name is out of order with expander

2012-07-29 Thread Jason Wang
Here is our configuration OS: ubuntu 10.4( kernel 2.6.32) HBA: H200 driver: mpt2sas We'd like to map the disk name with enclosure slot. That is to say, we would like to sda -> slot 0, sdb -> slto 1, sdc-> slot 2 ...; With the ubuntu included mpt2sas driver, the disk name is out of order. We use

Re: virtio(-scsi) vs. chained sg_lists (was Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list)

2012-07-29 Thread Rusty Russell
On Fri, 27 Jul 2012 10:11:26 +0200, Paolo Bonzini wrote: > Il 27/07/2012 08:27, Rusty Russell ha scritto: > >> > +int virtqueue_add_buf_sg(struct virtqueue *_vq, > >> > + struct scatterlist *sg_out, > >> > + unsigned int out, > >> > +

Re: [PATCH] scsi/ibmvscsi: /sys/class/scsi_host/hostX/config doesn't show any information

2012-07-29 Thread Benjamin Herrenschmidt
On Fri, 2012-07-27 at 07:56 +0100, James Bottomley wrote: > On Fri, 2012-07-27 at 15:19 +1000, Benjamin Herrenschmidt wrote: > > On Wed, 2012-07-18 at 18:49 +0200, o...@aepfle.de wrote: > > > From: Linda Xie > > > > James, can I assume you're picking up those two ? > > If they get acked by the m

Re: [PATCH] scsi/ibmvscsi: add module alias for ibmvscsic

2012-07-29 Thread Benjamin Herrenschmidt
On Wed, 2012-07-18 at 18:49 +0200, o...@aepfle.de wrote: > From: Olaf Hering > > The driver is named ibmvscsic, at runtime it its name is advertised as > ibmvscsi. For this reason mkinitrd wont pickup the driver properly. > Reported by IBM during SLES11 beta testing: > > https://bugzilla.novell.

Re: [PATCH] scsi/ibmvscsi: /sys/class/scsi_host/hostX/config doesn't show any information

2012-07-29 Thread Benjamin Herrenschmidt
n Wed, 2012-07-18 at 18:49 +0200, o...@aepfle.de wrote: > From: Linda Xie > > Expected result: > It should show something like this: > x1521p4:~ # cat /sys/class/scsi_host/host1/config > PARTITIONNAME='x1521p4' > NWSDNAME='X1521P4' > HOSTNAME='X1521P4' > DOMAINNAME='RCHLAND.IBM.COM' > NAMESERVERS

Re: [dm-devel] [PATCH] scsi : Adding all the definitions of host bytes in hostbyte_table

2012-07-29 Thread Hannes Reinecke
On 07/27/2012 07:28 PM, Moger, Babu wrote: > Submitted this patch earlier. But it still did not make it to kernel tree. > Resubmitting again(recreated on top of 3.5 kernel). > > Adding all the definitions of host bytes in hostbyte_table. > > Without this patch, scsi_show_result prints hostbyte a

[PATCH v3] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list

2012-07-29 Thread Wang Sen
When using the commands below to write some data to a virtio-scsi LUN of the QEMU guest(32-bit) with 1G physical memory(qemu -m 1024), the qemu will crash. # sudo mkfs.ext4 /dev/sdb (/dev/sdb is the virtio-scsi LUN.) # sudo mount /dev/sdb /mnt # dd if=/dev/zero of=/mnt/fil