Changeset 95609 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jul 12, 2022 8:28:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp
r95592 r95609 1016 1016 #if FEATURE_OFFERED(STATUS) 1017 1017 else 1018 if (VIRTIO_DEV_CONFIG_ MATCH_MEMBER(uStatus, VIRTIONET_CONFIG_T, uOffsetOfAccess))1018 if (VIRTIO_DEV_CONFIG_SUBMATCH_MEMBER( uStatus, VIRTIONET_CONFIG_T, uOffsetOfAccess)) 1019 1019 VIRTIO_DEV_CONFIG_ACCESS_READONLY( uStatus, VIRTIONET_CONFIG_T, uOffsetOfAccess, &pThis->virtioNetConfig); 1020 1020 #endif … … 1199 1199 */ 1200 1200 pThis->fNegotiatedFeatures = virtioCoreGetNegotiatedFeatures(&pThis->Virtio); 1201 /* @todo: shouldn't we update the virtio header size here? it depends on the negotiated features. */ 1201 1202 virtioCorePrintDeviceFeatures(&pThis->Virtio, NULL, s_aDevSpecificFeatures, RT_ELEMENTS(s_aDevSpecificFeatures)); 1202 1203 … … 3223 3224 pThis->fResetting = false; 3224 3225 pThis->fNegotiatedFeatures = virtioCoreGetNegotiatedFeatures(pVirtio); 3226 /* Now we can properly figure out the size of virtio header! */ 3227 virtioNetConfigurePktHdr(pThis, pThis->Virtio.fLegacyDriver); 3225 3228 pThis->virtioNetConfig.uStatus = pThis->fCableConnected ? VIRTIONET_F_LINK_UP : 0; 3226 3229 … … 3550 3553 3551 3554 pThis->fNegotiatedFeatures = virtioCoreGetNegotiatedFeatures(&pThis->Virtio); 3555 /* @todo: validating features at this point is most probably pointless, as the negotiation hasn't started yet. */ 3552 3556 if (!virtioNetValidateRequiredFeatures(pThis->fNegotiatedFeatures)) 3553 3557 return PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio-net: Required features not successfully negotiated."));
Note:
See TracChangeset
for help on using the changeset viewer.