VirtualBox

Changeset 23812 in vbox


Ignore:
Timestamp:
Oct 15, 2009 5:52:15 PM (15 years ago)
Author:
vboxsync
Message:

PDMAsyncCompletion: Bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMAsyncCompletionFileNormal.cpp

    r23712 r23812  
    463463                 * Offset, transfer size and buffer address
    464464                 * need to be on a 512 boundary. */
    465                 size_t cbToTransfer = RT_ALIGN_Z(pCurr->DataSeg.cbSeg, 512);
    466465                RTFOFF offStart = pCurr->Off & ~(RTFOFF)(512-1);
     466                size_t cbToTransfer = RT_ALIGN_Z(pCurr->DataSeg.cbSeg + (pCurr->Off - offStart), 512);
    467467                PDMACTASKFILETRANSFER enmTransferType = pCurr->enmTransferType;
    468468
     
    478478                    || ((pEpClassFile->uBitmaskAlignment & (RTR3UINTPTR)pvBuf) != (RTR3UINTPTR)pvBuf))
    479479                {
     480                    LogFlow(("Using bounce buffer for task %#p cbToTransfer=%zd cbSeg=%zd offStart=%RTfoff off=%RTfoff\n",
     481                             pCurr, cbToTransfer, pCurr->DataSeg.cbSeg, offStart, pCurr->Off));
     482
    480483                    /* Create bounce buffer. */
    481484                    pCurr->fBounceBuffer = true;
     
    500503                        {
    501504                            /* We have to fill the buffer first before we can update the data. */
     505                            LogFlow(("Prefetching data for task %#p\n", pCurr));
    502506                            pCurr->fPrefetch = true;
    503507                            enmTransferType = PDMACTASKFILETRANSFER_READ;
Note: See TracChangeset for help on using the changeset viewer.

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