qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_v


From: Libaiqing
Subject: Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module
Date: Wed, 19 Jun 2013 12:55:10 +0000

Hi paolo,
  The vhost-scsi device can be used as boot device?
  I tested with your config + 3.10 rc6 + seabios 1.7.2.2,but failed.
  Could you give me some advise to debug this problem ? I can provide more 
information if need.

Regards,
baiqing

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Paolo Bonzini
> Sent: Tuesday, May 28, 2013 4:01 PM
> To: Wenchao Xia
> Cc: address@hidden; address@hidden; address@hidden;
> Michael S. Tsirkin
> Subject: Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the
> tcm_vhost Linux kernel module
> 
> Il 28/05/2013 09:13, Wenchao Xia ha scritto:
> >> > From: Nicholas Bellinger <address@hidden>
> >> >
> >> > The WWPN specified in configfs is passed to "-device vhost-scsi-pci".
> >> > The tgpt field of the SET_ENDPOINT ioctl is obsolete now, so it is not
> >> > available from the QEMU command-line.  Instead, I hardcode it to
> zero.
> >> >
> > Hi, Paolo
> >   Any document about how to config it correctly in configfs, before
> > invoking qemu with the WWPN number?
> 
> Unfortunately no, but vhost-scsi doesn't have many knobs (unlike
> iSCSI for example) so it's quite simple.  Here is an example:
> 
> cd /sys/kernel/config/target
> mkdir -p core/fileio_0/fileio
> echo 'fd_dev_name=/home/pbonzini/test.img,fd_dev_size=5905580032' >
> core/fileio_0/fileio/control
> echo 1 > core/fileio_0/fileio/enable
> mkdir -p vhost/naa.600140554cf3a18e/tpgt_0/lun/lun_0
> cd vhost/naa.600140554cf3a18e/tpgt_0
> ln -sf ../../../../../core/fileio_0/fileio/ lun/lun_0/virtual_scsi_port
> echo naa.60014053226f0388 > nexus
> 
> The "nexus" value is the initiator WWN.  naa.600140554cf3a18e is the
> target WWN that you have to pass to "-device vhost-scsi-pci".
> 
> Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]