Re: [PATCH] virtio_scsi: Always try to read VPD pages

2017-04-19 Thread Martin K. Petersen
David, > Passed through SCSI targets may have transfer limits which come from > the host SCSI controller 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

Re: [PATCH] virtio_scsi: Always try to read VPD pages

2017-04-19 Thread Paolo Bonzini
On 13/04/2017 15:39, Stefan Hajnoczi wrote: > On Thu, Apr 13, 2017 at 12:13:00PM +1000, David Gibson wrote: >> @@ -705,6 +706,28 @@ static int virtscsi_device_reset(struct scsi_cmnd *sc) >> return virtscsi_tmf(vscsi, cmd); >> } >> >> +static int virtscsi_device_alloc(struct scsi_device

Re: [PATCH] virtio_scsi: Always try to read VPD pages

2017-04-13 Thread Stefan Hajnoczi
On Thu, Apr 13, 2017 at 12:13:00PM +1000, David Gibson wrote: > @@ -705,6 +706,28 @@ static int virtscsi_device_reset(struct scsi_cmnd *sc) > return virtscsi_tmf(vscsi, cmd); > } > > +static int virtscsi_device_alloc(struct scsi_device *sdevice) > +{ > + /* > + * Passed through

[PATCH] virtio_scsi: Always try to read VPD pages

2017-04-12 Thread David Gibson
Passed through SCSI targets may have transfer limits which come from the host SCSI controller 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