• P
    scsi-block: always use SG_IO · 8fdc7839
    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 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: NPaolo Bonzini <pbonzini@redhat.com>
    8fdc7839
scsi-disk.c 91.7 KB