Changeset 81231 in vbox
- Timestamp:
- Oct 13, 2019 12:59:17 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
-
Storage/DevVirtioSCSI.cpp (modified) (2 diffs)
-
VirtIO/Virtio_1_0.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp
r81122 r81231 696 696 RT_NOREF2(hIoReq, pInterface); 697 697 PVIRTIOSCSIREQ pReq = (PVIRTIOSCSIREQ)pvIoReqAlloc; 698 if (pReq->pbDataIn) 699 RTSgBufCopyToBuf(pSgBuf, pReq->pbDataIn + offDst, cbCopy); 698 699 AssertReturn(pReq->pbDataIn 700 && offDst + cbCopy <= pReq->cbDataIn 701 && cbCopy <= pSgBuf->cbSegLeft, VERR_INVALID_PARAMETER); 702 703 RTSgBufCopyToBuf(pSgBuf, pReq->pbDataIn + offDst, cbCopy); 704 700 705 return VINF_SUCCESS; 701 706 } … … 709 714 RT_NOREF2(hIoReq, pInterface); 710 715 PVIRTIOSCSIREQ pReq = (PVIRTIOSCSIREQ)pvIoReqAlloc; 711 if (pReq->pbDataOut) 712 RTSgBufCopyFromBuf(pSgBuf, pReq->pbDataOut + offSrc, cbCopy); 716 717 AssertReturn(pReq->pbDataOut 718 && offSrc + cbCopy <= pReq->cbDataOut 719 && cbCopy <= pSgBuf->cbSegLeft, VERR_INVALID_PARAMETER); 720 721 RTSgBufCopyFromBuf(pSgBuf, pReq->pbDataOut + offSrc, cbCopy); 713 722 714 723 return VINF_SUCCESS; -
trunk/src/VBox/Devices/VirtIO/Virtio_1_0.cpp
r81126 r81231 108 108 int virtioQueueGet(VIRTIOHANDLE hVirtio, uint16_t qIdx, PPVIRTIO_DESC_CHAIN_T ppDescChain, bool fRemove) 109 109 { 110 Assert (ppDescChain);110 AssertReturn(ppDescChain, VERR_INVALID_PARAMETER); 111 111 112 112 PVIRTIOSTATE pVirtio = (PVIRTIOSTATE)hVirtio; … … 1040 1040 } 1041 1041 1042 #ifdef VBOX_WITH_MSI_DEVICES 1042 #if 0 /* Until pdmR3DvHlp_PCISetIrq() impl is fixed and Assert that limits vec to 0 is removed */ 1043 # ifdef VBOX_WITH_MSI_DEVICES 1043 1044 pVirtio->fMsiSupport = true; 1045 # endif 1044 1046 #endif 1045 1047
Note:
See TracChangeset
for help on using the changeset viewer.

