1. 20 4月, 2017 3 次提交
    • C
      scsi: storvsc: Add support for FC rport. · daf0cd44
      Cathy Avery 提交于
      Included in the current storvsc driver for Hyper-V is the ability to
      access luns on an FC fabric via a virtualized fiber channel adapter
      exposed by the Hyper-V host. The driver also attaches to the FC
      transport to allow host and port names to be published under
      /sys/class/fc_host/hostX. Current customer tools running on the VM
      require that these names be available in the well known standard
      location under fc_host/hostX.
      
      This patch stubs in an rport per fc_host and sets its rport role as
      FC_PORT_ROLE_FCP_DUMMY_INITIATOR to indicate to the fc_transport that it
      is a pseudo rport in order to scan the scsi stack via echo "- - -" >
      /sys/class/scsi_host/hostX/scan.
      Signed-off-by: NCathy Avery <cavery@redhat.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      daf0cd44
    • C
      scsi: scsi_transport_fc: Add dummy initiator role to rport · 0c3ae266
      Cathy Avery 提交于
      This patch allows scsi drivers that expose virturalized fibre channel
      devices but that do not expose rports to successfully rescan the scsi
      bus via echo "- - -" > /sys/class/scsi_host/hostX/scan.  Drivers can
      create a pseudo rport and indicate FC_PORT_ROLE_FCP_DUMMY_INITIATOR as
      the rport's role in fc_rport_identifiers. This insures that a valid
      scsi_target_id is assigned to the newly created rport and it can meet
      the requirements of fc_user_scan_tgt calling scsi_scan_target.
      Signed-off-by: NCathy Avery <cavery@redhat.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      0c3ae266
    • D
      scsi: virtio_scsi: Always try to read VPD pages · 25d1d50e
      David Gibson 提交于
      Passed through SCSI targets may have transfer limits which come from the
      host SCSI controller or something on the host side other than the target
      itself.
      
      To make this work properly, the hypervisor can adjust the target's VPD
      information to advertise these limits.  But for that to work, the guest
      has to look at the VPD pages, which we won't do by default if it is an
      SPC-2 device, even if it does actually support it.
      
      This adds a workaround to address this, forcing devices attached to a
      virtio-scsi controller to always check the VPD pages.  This is modelled
      on a similar workaround for the storvsc (Hyper-V) SCSI controller,
      although that exists for slightly different reasons.
      
      A specific case which causes this is a volume from IBM's IPR RAID
      controller (which presents as an SPC-2 device, although it does support
      VPD) passed through with qemu's 'scsi-block' device.
      
      [mkp: fixed typo]
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      25d1d50e
  2. 19 4月, 2017 4 次提交
  3. 14 4月, 2017 20 次提交
  4. 12 4月, 2017 13 次提交