From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukj3v-0006me-NR for qemu-devel@nongnu.org; Thu, 06 Jun 2013 18:53:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukj3t-00051y-1l for qemu-devel@nongnu.org; Thu, 06 Jun 2013 18:53:43 -0400 Received: from e9.ny.us.ibm.com ([32.97.182.139]:41373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukj3s-00050y-Sz for qemu-devel@nongnu.org; Thu, 06 Jun 2013 18:53:40 -0400 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 6 Jun 2013 18:53:37 -0400 Received: from d01relay01.pok.ibm.com (d01relay01.pok.ibm.com [9.56.227.233]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 965D7C90026 for ; Thu, 6 Jun 2013 18:53:33 -0400 (EDT) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r56MrYEM312342 for ; Thu, 6 Jun 2013 18:53:34 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r56MrWbb013416 for ; Thu, 6 Jun 2013 18:53:33 -0400 Message-ID: <51B112E3.8090603@us.ibm.com> Date: Thu, 06 Jun 2013 15:53:23 -0700 From: Badari MIME-Version: 1.0 References: <1366381460-6041-1-git-send-email-pbonzini@redhat.com> <1366381460-6041-7-git-send-email-pbonzini@redhat.com> <51A4590F.90503@linux.vnet.ibm.com> <51A4644A.6070002@redhat.com> <20130528083352.GA19799@hj.localdomain> <51A47244.9050203@linux.vnet.ibm.com> <51A5C4DB.9040307@linux.vnet.ibm.com> <51A61A74.7050508@us.ibm.com> <20130529221721.GC19601@hj.localdomain> <1369888147.7364.124.camel@haakon3.risingtidesystems.com> <1369892185.7364.134.camel@haakon3.risingtidesystems.com> In-Reply-To: <1369892185.7364.134.camel@haakon3.risingtidesystems.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] vhost-scsi and pscsi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Nicholas A. Bellinger" Cc: Paolo Bonzini , Asias He , qemu-devel@nongnu.org Hi Nicholas, I am trying to test vhost-scsi with pscsi lio. I am able to create a target and pass it to QEMU. I don't see any error from tcm_vhost or qemu. But the guest VM doesn't see any SCSI device. What am I missing ? Here is how I am using pscsi target. wwpn="naa.6001405bd4e8476e" tpgt=/sys/kernel/config/target/vhost/$wwpn/tpgt_0 nexus=$tpgt/nexus mkdir -p $tpgt echo -n $wwpn > $nexus n=0 lun=$tpgt/lun/lun_${n} data=/sys/kernel/config/target/core/pscsi_0/data_${n} dsk=/dev/sdf mkdir -p $lun mkdir -p $data echo -n ${dsk} > $data/udev_path echo "scsi_host_id=1,scsi_channel_id=0,scsi_target_id=2,scsi_lun_id=0" > $data/control echo -n 1 > $data/enable ln -s $data $lun Thanks, Badari