Re: [Qemu-devel] [PATCH v1 1/3] scsi-block: emulate missing Block Limits response

2018-06-21 Thread Paolo Bonzini
On 08/06/2018 22:07, Daniel Henrique Barboza wrote: > +unsigned int unmap_sectors = s->conf.discard_granularity / s->blocksize; > +unsigned int min_io_size = s->conf.min_io_size / s->blocksize; > +unsigned int opt_io_size = s->conf.opt_io_size / s->blocksize; > +unsigned int max_unm

[Qemu-devel] [PATCH v1 1/3] scsi-block: emulate missing Block Limits response

2018-06-08 Thread Daniel Henrique Barboza
The VPD Block Limits Inquiry page is optional, allowing SCSI devices to not implement it. This is the case for devices like the MegaRAID SAS 9361-8i and Microsemi PM8069. In case of SCSI passthrough, the response of this request is used by the QEMU SCSI layer to set the max_io_sectors that the gue