- Timestamp:
- May 20, 2020 6:19:44 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp
r84388 r84389 1863 1863 1864 1864 if (pThisCC->pDrv && fPromiscChanged) 1865 { 1866 bool fPromiscuous = pThis->fPromiscuous | pThis->fAllMulticast; 1867 pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, (uint8_t)fPromiscuous); 1868 } 1865 pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, pThis->fPromiscuous | pThis->fAllMulticast); 1869 1866 1870 1867 return VIRTIONET_OK; … … 2076 2073 } 2077 2074 2078 static int virtioNetR3ReadHeader(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, PVIRTIONET_PKT_HDR_T pPktHdr, uint32_t cbFrame)2075 static int virtioNetR3ReadHeader(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, PVIRTIONET_PKT_HDR_T pPktHdr, size_t cbFrame) 2079 2076 { 2080 2077 int rc = PDMDevHlpPCIPhysRead(pDevIns, GCPhys, pPktHdr, sizeof(*pPktHdr)); -
trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp
r84388 r84389 818 818 static int virtioScsiR3ReqErr(PPDMDEVINS pDevIns, PVIRTIOSCSI pThis, PVIRTIOSCSICC pThisCC, uint16_t qIdx, 819 819 PVIRTIO_DESC_CHAIN_T pDescChain, REQ_RESP_HDR_T *pRespHdr, uint8_t *pbSense, 820 uint32_t cbSenseCfg)820 size_t cbSenseCfg) 821 821 { 822 822 Log2Func((" status: %s response: %s\n", … … 885 885 { 886 886 REQ_RESP_HDR_T RespHdr; 887 RespHdr.cbSenseLen = cbSense ;887 RespHdr.cbSenseLen = cbSense & UINT32_MAX; 888 888 RespHdr.uResidual = cbResidual; 889 889 RespHdr.uStatusQualifier = 0; … … 1011 1011 respHdr.uStatus = SCSI_STATUS_CHECK_CONDITION; 1012 1012 respHdr.uResponse = VIRTIOSCSI_S_OVERRUN; 1013 respHdr.uResidual = pReq->cbDataIn ;1013 respHdr.uResidual = pReq->cbDataIn & UINT32_MAX; 1014 1014 1015 1015 virtioScsiR3ReqErr(pDevIns, pThis, pThisCC, pReq->qIdx, pReq->pDescChain, &respHdr, abSense,
Note:
See TracChangeset
for help on using the changeset viewer.