- Timestamp:
- Nov 14, 2016 2:18:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r64408 r64658 3769 3769 /* Write updated command header into memory of the guest. */ 3770 3770 uint32_t u32PRDBC = 0; 3771 if (pAhciReq->enmType != PDMMEDIAEXIOREQTYPE_INVALID)3771 if (pAhciReq->enmType != PDMMEDIAEXIOREQTYPE_INVALID) 3772 3772 { 3773 3773 size_t cbXfer = 0; 3774 size_t cbResidual = 0;3775 3774 int rc = pAhciPort->pDrvMediaEx->pfnIoReqQueryXferSize(pAhciPort->pDrvMediaEx, pAhciReq->hIoReq, &cbXfer); 3776 3775 AssertRC(rc); 3777 rc = pAhciPort->pDrvMediaEx->pfnIoReqQueryResidual(pAhciPort->pDrvMediaEx, pAhciReq->hIoReq, &cbResidual); 3778 AssertRC(rc); Assert(cbXfer >= cbResidual); 3779 u32PRDBC = (uint32_t)(cbXfer - cbResidual); 3776 u32PRDBC = (uint32_t)RT_MIN(cbXfer, pAhciReq->cbTransfer); 3780 3777 } 3781 3778 else … … 3896 3893 if (pIoReq->fFlags & AHCI_REQ_OVERFLOW) 3897 3894 rc = VERR_PDM_MEDIAEX_IOBUF_OVERFLOW; 3898 3899 if (pIoReq->enmType == PDMMEDIAEXIOREQTYPE_SCSI)3900 pIoReq->cbTransfer += cbCopy;3901 3895 3902 3896 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.