Re: [Qemu-devel] [PATCH 7/7] scsi-block: always use SG_IO

2016-05-23 Thread Eric Blake
On 05/23/2016 06:54 AM, Paolo Bonzini wrote: > Using pread/pwrite or io_submit has the advantage of eliminating the > bounce buffer, but drops the SCSI status. This keeps the guest from > seeing unit attention codes, as well as statuses such as RESERVATION > CONFLICT. Because we know scsi-block o

[Qemu-devel] [PATCH 7/7] scsi-block: always use SG_IO

2016-05-23 Thread Paolo Bonzini
Using pread/pwrite or io_submit has the advantage of eliminating the bounce buffer, but drops the SCSI status. This keeps the guest from seeing unit attention codes, as well as statuses such as RESERVATION CONFLICT. Because we know scsi-block operates on an SBC device we can still use the DMA hel