Changeset 84384 in vbox for trunk/src/VBox
- Timestamp:
- May 20, 2020 5:07:26 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
r84383 r84384 717 717 for (unsigned i = 0; i < RT_ELEMENTS(s_aFeatures); ++i) 718 718 { 719 boolisOffered = fFeaturesOfferedMask & s_aFeatures[i].fFeatureBit;720 boolisNegotiated = pThis->fNegotiatedFeatures & s_aFeatures[i].fFeatureBit;719 uint64_t isOffered = fFeaturesOfferedMask & s_aFeatures[i].fFeatureBit; 720 uint64_t isNegotiated = pThis->fNegotiatedFeatures & s_aFeatures[i].fFeatureBit; 721 721 cp += RTStrPrintf(cp, cbBuf - (cp - pszBuf), " %s %s %s", 722 722 isOffered ? "+" : "-", isNegotiated ? "x" : " ", s_aFeatures[i].pcszDesc); … … 787 787 || offConfig == RT_UOFFSETOF(VIRTIONET_CONFIG_T, member) + sizeof(uint32_t)) \ 788 788 && cb == sizeof(uint32_t)) \ 789 || ( offConfig >= RT_UOFFSETOF(VIRTIONET_CONFIG_T, member) \ 790 && offConfig + cb <= RT_UOFFSETOF(VIRTIONET_CONFIG_T, member) \ 791 + RT_SIZEOFMEMB(VIRTIONET_CONFIG_T, member)) ) 789 || (offConfig + cb <= RT_UOFFSETOF(VIRTIONET_CONFIG_T, member) \ 790 + RT_SIZEOFMEMB(VIRTIONET_CONFIG_T, member)) ) 792 791 793 792 #ifdef LOG_ENABLED … … 1579 1578 1580 1579 /* Append remaining Rx pkt or as much current desc chain has room for */ 1581 uint32_t cbCropped = RT_MIN(cb, cbDescChainLeft);1580 size_t cbCropped = RT_MIN(cb, cbDescChainLeft); 1582 1581 paVirtSegsToGuest[cSegs].cbSeg = cbCropped; 1583 1582 paVirtSegsToGuest[cSegs].pvSeg = ((uint8_t *)pvBuf) + uOffset; … … 1793 1792 { 1794 1793 uint8_t *pb = (uint8_t *)pv; 1795 uint16_t cbLim = RT_MIN(pDescChain->cbPhysSend, cb);1794 size_t cbLim = RT_MIN(pDescChain->cbPhysSend, cb); 1796 1795 while (cbLim) 1797 1796 { -
trunk/src/VBox/Devices/VirtIO/Virtio_1_0.h
r84351 r84384 101 101 uint32_t volatile cRefs; /**< Reference counter. */ 102 102 uint32_t uHeadIdx; /**< Head idx of associated desc chain */ 103 uint32_tcbPhysSend; /**< Total size of src buffer */103 size_t cbPhysSend; /**< Total size of src buffer */ 104 104 PVIRTIOSGBUF pSgPhysSend; /**< Phys S/G/ buf for data from guest */ 105 uint32_tcbPhysReturn; /**< Total size of dst buffer */105 size_t cbPhysReturn; /**< Total size of dst buffer */ 106 106 PVIRTIOSGBUF pSgPhysReturn; /**< Phys S/G buf to store result for guest */ 107 107
Note:
See TracChangeset
for help on using the changeset viewer.