VirtualBox

Changeset 34217 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 21, 2010 2:45:14 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67961
Message:

VD: Use S/G buffers instead of S/G arrays for VDAsyncWrite and VDAsyncRead (Preparation for moving the I/O cache in front of VD, see #5295)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r33745 r34217  
    17021702    pThis->fBootAccelActive = false;
    17031703
    1704     int rc = VDAsyncRead(pThis->pDisk, uOffset, cbRead, paSeg, cSeg,
     1704    RTSGBUF SgBuf;
     1705    RTSgBufInit(&SgBuf, paSeg, cSeg);
     1706    int rc = VDAsyncRead(pThis->pDisk, uOffset, cbRead, &SgBuf,
    17051707                         drvvdAsyncReqComplete, pThis, pvUser);
    17061708    LogFlowFunc(("returns %Rrc\n", rc));
     
    17181720    pThis->fBootAccelActive = false;
    17191721
    1720     int rc = VDAsyncWrite(pThis->pDisk, uOffset, cbWrite, paSeg, cSeg,
     1722    RTSGBUF SgBuf;
     1723    RTSgBufInit(&SgBuf, paSeg, cSeg);
     1724    int rc = VDAsyncWrite(pThis->pDisk, uOffset, cbWrite, &SgBuf,
    17211725                          drvvdAsyncReqComplete, pThis, pvUser);
    17221726    LogFlowFunc(("returns %Rrc\n", rc));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette