On Thu, 2015-09-17 at 14:48 -0700, Nicholas A. Bellinger wrote: > On Thu, 2015-09-17 at 14:20 -0700, Ming Lin wrote: > > Hi list, > > > > root@ssi:/sys/kernel/config/target# uname -r > > 4.2.0-rc2 > > > > root@ssi:~# targetcli > > targetcli GIT_VERSION (rtslib GIT_VERSION) > > Copyright (c) 2011-2013 by Datera, Inc. > > All rights reserved. > > Loaded tcm_qla2xxx kernel module. > > Created '/sys/kernel/config/target/qla2xxx'. > > Loaded ib_srpt kernel module. > > Created '/sys/kernel/config/target/srpt'. > > Loaded tcm_fc kernel module. > > Created '/sys/kernel/config/target/fc'. > > Loaded tcm_loop kernel module. > > Created '/sys/kernel/config/target/loopback'. > > Loaded iscsi_target_mod kernel module. > > Created '/sys/kernel/config/target/iscsi'. > > > > root@ssi:/sys/kernel/config/target# ls > > core fc iscsi loopback qla2xxx srpt version > > > > It seems targetcli didn't load vhost_scsi kernel module. > > Then I loaded it manually. > > > > root@ssi:/sys/kernel/config/target# lsmod |grep target_core_mod > > target_core_mod 344064 11 > > tcm_qla2xxx,iscsi_target_mod,tcm_fc,ib_srpt,vhost_scsi,tcm_loop > > configfs 36864 3 iscsi_target_mod,target_core_mod > > > > /> ls > > o- / ......................................................................................................................... > > [...] > > o- backstores > > .............................................................................................................. > > [...] > > | o- fileio ................................................................................................... > > [0 Storage Object] > > | o- iblock ................................................................................................... > > [0 Storage Object] > > | o- pscsi .................................................................................................... > > [0 Storage Object] > > | o- rd_dr .................................................................................................... > > [0 Storage Object] > > | o- rd_mcp ................................................................................................... > > [0 Storage Object] > > o- ib_srpt ........................................................................................................... > > [0 Targets] > > o- iscsi ............................................................................................................. > > [0 Targets] > > o- loopback .......................................................................................................... > > [0 Targets] > > o- qla2xxx ........................................................................................................... > > [0 Targets] > > o- tcm_fc ............................................................................................................ > > [0 Targets] > > > > But I still didn't see "vhost". > > > > Any clue? > > It looks like you're missing /var/target/fabric/vhost.spec: > > root@scsi-mq:~# cat /var/target/fabric/vhost.spec > # The fabric module feature set > features = nexus, tpgts > > # Use naa WWNs. > wwn_type = naa > > # Non-standard module naming scheme > kernel_module = vhost_scsi Mine was: kernel_module = tcm_vhost Now it works! /> ls / o- / ......................................................................................................................... [...] o- backstores .............................................................................................................. [...] | o- fileio ................................................................................................... [1 Storage Object] | | o- mystore ........................................................................................... [mystore.img activated] | o- iblock ................................................................................................... [0 Storage Object] | o- pscsi .................................................................................................... [0 Storage Object] | o- rd_dr .................................................................................................... [0 Storage Object] | o- rd_mcp ................................................................................................... [0 Storage Object] o- ib_srpt ........................................................................................................... [0 Targets] o- iscsi ............................................................................................................. [0 Targets] o- loopback .......................................................................................................... [0 Targets] o- qla2xxx ........................................................................................................... [0 Targets] o- tcm_fc ............................................................................................................ [0 Targets] o- vhost .............................................................................................................. [1 Target] o- naa.600140579f913a39 ................................................................................................ [1 TPG] o- tpgt1 .............................................................................................. [naa.600140520feb11c3] o- luns ............................................................................................................ [1 LUN] o- lun0 ................................................................................... [fileio/mystore (mystore.img)] And now I can play with qemu/vhost-scsi. qemu-system-x86_64 -device vhost-scsi-pci,wwpn=naa.600140579f913a39 Thanks Nic! > > # The configfs group > configfs_group = vhost > -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html