diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-05-10 10:50:44 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-05-29 09:11:11 +0200 |
commit | 8fdc7839e40f43a426bc7e858cf1dbfe315a3804 (patch) | |
tree | f4a935071df6518586ae245291b4d5e061dbd861 /exec.c | |
parent | 5b956f415a356449a4171d5e0c7d9a25bbc84b5a (diff) |
scsi-block: always use SG_IO
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 helpers with SG_IO; just remember to patch the CDBs
if the transfer is split into multiple segments.
This means that scsi-block will always use the thread-pool unfortunately,
instead of respecting aio=native.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'exec.c')
0 files changed, 0 insertions, 0 deletions