Add unmapped IO support to virtio_scsi(4)
This commit is contained in:
parent
841c25608b
commit
794929e7d2
@ -878,7 +878,7 @@ vtscsi_cam_path_inquiry(struct vtscsi_softc *sc, struct cam_sim *sim,
|
||||
cpi->version_num = 1;
|
||||
cpi->hba_inquiry = PI_TAG_ABLE;
|
||||
cpi->target_sprt = 0;
|
||||
cpi->hba_misc = PIM_SEQSCAN;
|
||||
cpi->hba_misc = PIM_SEQSCAN | PIM_UNMAPPED;
|
||||
if (vtscsi_bus_reset_disable != 0)
|
||||
cpi->hba_misc |= PIM_NOBUSRESET;
|
||||
cpi->hba_eng_cnt = 0;
|
||||
@ -946,6 +946,9 @@ vtscsi_sg_append_scsi_buf(struct vtscsi_softc *sc, struct sglist *sg,
|
||||
(vm_paddr_t) dseg->ds_addr, dseg->ds_len);
|
||||
}
|
||||
break;
|
||||
case CAM_DATA_BIO:
|
||||
error = sglist_append_bio(sg, (struct bio *) csio->data_ptr);
|
||||
break;
|
||||
default:
|
||||
error = EINVAL;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user