Changeset 85030 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jul 1, 2020 3:14:59 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VirtIO/VirtioCore.h
r85016 r85030 84 84 * Each descriptor, e.g. [len, GCPhys] pair in the chain represents either an OUT segment (e.g. guest-to-host) 85 85 * or an IN segment (host-to-guest). A VIRTQBUF is created and retured from a call to virtioCoreR3VirtqAvailBufPeek() 86 * or virtioCoreR3VirtqAvailBufGet() , which consolodates the VirtIO descriptor chain into a representation, where87 * pSgPhysSend is GCPhys s/g buffer containing all of the OUT descriptors and pSgPhysReturn is a GCPhys s/g88 * buffer containing all of IN descriptors to be filled with data onthe89 * host to return to theguest.86 * or virtioCoreR3VirtqAvailBufGet(). That function consolodates the VirtIO descriptor chain into a 87 * representation, where pSgPhysSend is GCPhys s/g buffer containing all of the OUT descriptors and pSgPhysReturn \ 88 * is a GCPhys s/g buffer containing all of IN descriptors to be filled with data on the host to return to the 89 * guest. 90 90 */ 91 91 typedef struct VIRTQBUF … … 445 445 void virtioCoreVirtqEnableNotify(PVIRTIOCORE pVirtio, uint16_t uVirtqNbr, bool fEnable); 446 446 447 /* 447 /** 448 448 * Notifies guest (via ISR or MSI-X) of device configuration change 449 449 * … … 452 452 void virtioCoreNotifyConfigChanged(PVIRTIOCORE pVirtio); 453 453 454 /* 454 /** 455 455 * Displays the VirtIO spec-related features offered by the core component, 456 456 * as well as which features have been negotiated and accepted or declined by the guest driver, … … 483 483 void virtioCoreR3VirtqInfo(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs, int uVirtqNbr); 484 484 485 /* 485 /** 486 486 * Returns the number of avail bufs in the virtq. 487 487 * … … 515 515 516 516 /** 517 * This function ffetches the next buffer (descriptor chain) from the VirtIO "avail" ring of517 * This function fetches the next buffer (descriptor chain) from the VirtIO "avail" ring of 518 518 * indicated queue, and converts the buf's s/g vectors into OUT (e.g. guest-to-host) 519 519 * components and and IN (host-to-guest) components. … … 614 614 615 615 /** 616 * Add some bytes out ofa virtq (s/g) buffer, converting them from virtual memory to GCPhys616 * Add some bytes to a virtq (s/g) buffer, converting them from virtual memory to GCPhys 617 617 * 618 618 * To be performant it is left to the caller to validate the size of the buffer with regard
Note:
See TracChangeset
for help on using the changeset viewer.