- Timestamp:
- Dec 15, 2021 9:03:29 PM (3 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp
r92950 r92951 1968 1968 /* 1969 1969 * Try to do fast (e.g. single-buffer) copy to guest, even if MRG_RXBUF feature is enabled 1970 * If1971 1970 */ 1972 1971 STAM_PROFILE_START(&pThis->StatReceiveStore, a); … … 1977 1976 pRxPktHdr->uNumBuffers = 1; 1978 1977 rc = virtioCoreR3VirtqUsedBufPut(pDevIns, &pThis->Virtio, pRxVirtq->uIdx, cbPktHdr, pRxPktHdr, pVirtqBuf, 0 /* cbEnqueue */); 1979 AssertMsgReturn(rc == VINF_SUCCESS, ("%Rrc\n", rc), rc); 1980 rc = virtioCoreR3VirtqUsedBufPut(pDevIns, &pThis->Virtio, pRxVirtq->uIdx, cb, pvBuf, pVirtqBuf, cbPktHdr + cb /* cbEnqueue */); 1981 AssertMsgReturn(rc == VINF_SUCCESS, ("%Rrc\n", rc), rc); 1978 if (rc == VINF_SUCCESS) 1979 rc = virtioCoreR3VirtqUsedBufPut(pDevIns, &pThis->Virtio, pRxVirtq->uIdx, cb, pvBuf, pVirtqBuf, cbPktHdr + cb /* cbEnqueue */); 1982 1980 virtioCoreR3VirtqBufRelease(&pThis->Virtio, pVirtqBuf); 1983 1981 virtioCoreVirtqUsedRingSync(pDevIns, &pThis->Virtio, pRxVirtq->uIdx); 1982 AssertMsgReturn(rc == VINF_SUCCESS, ("%Rrc\n", rc), rc); 1984 1983 } 1985 1984 else … … 2373 2372 * This function handles all parts of the host-side of the ctrlq round-trip buffer processing. 2374 2373 * 2375 * Invoked by worker for virtio-net defincecontrol queue to process a queued control command buffer.2374 * Invoked by worker for virtio-net control queue to process a queued control command buffer. 2376 2375 * 2377 2376 * @param pDevIns PDM device instance … … 3327 3326 * Case in point: According to VirtIO 0.95 ("legacy") specification, section 2.2.1, "historically" 3328 3327 * drivers may start driving prior to feature negotiation and prior to drivers setting DRIVER_OK 3329 * status, "provided driver doesn't use features that alter early use of this device". That3330 * is Interpreted here to mean a virtio-net driver must respect default settings (such as implicit3331 * pkt header defaultsize, as determined per Note 1 below).3328 * status, "provided driver doesn't use features that alter early use of this device". Interpreted 3329 * here to mean a virtio-net driver must respect default settings (such as implicit pkt header default 3330 * size, as determined per Note 1 below). 3332 3331 * 3333 3332 * ---------------------------------------------------------------------------------------------- -
trunk/src/VBox/Devices/VirtIO/VirtioCore.h
r92950 r92951 619 619 620 620 /** 621 * Displays a well-format ed human-readable translation of otherwise inscrutable bitmasks621 * Displays a well-formatted human-readable translation of otherwise inscrutable bitmasks 622 622 * that embody features VirtIO specification definitions, indicating: Totality of features 623 623 * that can be implemented by host and guest, which features were offered by the host, and … … 821 821 * behavioral modeling, indicating guest agreed to comply with the modern VirtIO 1.0+ specification. 822 822 * Otherwise unavoidable presumption is that the host device is dealing with legacy VirtIO 823 * guest drive, thus must be prepared to cope with less mature architecture and behaviors 824 * from prototype era of VirtIO. (see comments in PDM-invoked device constructor for more information). 823 * guest driver, thus must be prepared to cope with less mature architecture and behaviors 824 * from prototype era of VirtIO. (see comments in PDM-invoked device constructor for more 825 * information). 825 826 * 826 827 * @param pVirtio Pointer to the virtio state.
Note:
See TracChangeset
for help on using the changeset viewer.