VirtualBox

Changeset 13045 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 7, 2008 1:04:43 PM (16 years ago)
Author:
vboxsync
Message:

#1865: More PGM changes.

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r13042 r13045  
    280280#  ifdef IN_GC
    281281                    STAM_PROFILE_START(&pCur->Stat, h);
    282                     rc = CTXSUFF(pCur->pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr);
     282                    rc = pCur->CTX_SUFF(pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr);
    283283                    STAM_PROFILE_STOP(&pCur->Stat, h);
    284284#  else
     
    460460#  ifdef IN_GC
    461461                                STAM_PROFILE_START(&pCur->Stat, h);
    462                                 rc = CTXSUFF(pCur->pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr);
     462                                rc = pCur->CTX_SUFF(pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr);
    463463                                STAM_PROFILE_STOP(&pCur->Stat, h);
    464464#  else
     
    489489                                Assert(off < pCur->cb);
    490490                                STAM_PROFILE_START(&pCur->Stat, h);
    491                                 rc = CTXSUFF(pCur->pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, off);
     491                                rc = pCur->CTX_SUFF(pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, off);
    492492                                STAM_PROFILE_STOP(&pCur->Stat, h);
    493493#  else
     
    567567#  ifdef IN_GC
    568568                            STAM_PROFILE_START(&pCur->Stat, h);
    569                             rc = CTXSUFF(pCur->pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr);
     569                            rc = pCur->CTX_SUFF(pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr);
    570570                            STAM_PROFILE_STOP(&pCur->Stat, h);
    571571#  else
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r13040 r13045  
    12501250                    unsigned iPage;
    12511251                    int rc2 = pgmHandlerVirtualFindByPhysAddr(pVM, GCPhys, &pNode, &iPage);
    1252                     if (VBOX_SUCCESS(rc2) && pNode->pfnHandlerHC)
     1252                    if (VBOX_SUCCESS(rc2) && pNode->pfnHandlerR3)
    12531253                    {
    12541254                        size_t cbRange = pNode->Core.KeyLast - GCPhys + 1;
     
    12621262                        void *pvSrc = PGMRAMRANGE_GETHCPTR(pRam, off)
    12631263
    1264                         /** @note Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */
    1265                         rc = pNode->pfnHandlerHC(pVM, (RTGCPTR)GCPtr, pvSrc, pvBuf, cb, PGMACCESSTYPE_READ, 0);
     1264                        /* Note: Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */
     1265                        rc = pNode->pfnHandlerR3(pVM, (RTGCPTR)GCPtr, pvSrc, pvBuf, cb, PGMACCESSTYPE_READ, 0);
    12661266                    }
    12671267#endif /* IN_RING3 */
     
    14911491                            void *pvDst = PGMRAMRANGE_GETHCPTR(pRam, off)
    14921492
    1493                             /** @note Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */
     1493                            /* Note! Dangerous assumption that R3 handlers don't do anything that really requires an EMT lock! */
    14941494                            rc = pPhysNode->pfnHandlerR3(pVM, GCPhys, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, pPhysNode->pvUserR3);
    14951495                        }
     
    14991499                        unsigned iPage;
    15001500                        int rc2 = pgmHandlerVirtualFindByPhysAddr(pVM, GCPhys, &pVirtNode, &iPage);
    1501                         if (VBOX_SUCCESS(rc2) && pVirtNode->pfnHandlerHC)
     1501                        if (VBOX_SUCCESS(rc2) && pVirtNode->pfnHandlerR3)
    15021502                        {
    15031503                            size_t cbRange = pVirtNode->Core.KeyLast - GCPhys + 1;
     
    15111511                            void *pvDst = PGMRAMRANGE_GETHCPTR(pRam, off)
    15121512
    1513                             /** @note Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */
    1514                             rc2 = pVirtNode->pfnHandlerHC(pVM, (RTGCPTR)GCPtr, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, 0);
     1513                            /* Note! Dangerous assumption that R3 handlers don't do anything that really requires an EMT lock! */
     1514                            rc2 = pVirtNode->pfnHandlerR3(pVM, (RTGCPTR)GCPtr, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, 0);
    15151515                            if (    (   rc2 != VINF_PGM_HANDLER_DO_DEFAULT
    15161516                                     && rc == VINF_PGM_HANDLER_DO_DEFAULT)
     
    15491549                        unsigned iPage;
    15501550                        int rc2 = pgmHandlerVirtualFindByPhysAddr(pVM, GCPhys, &pNode, &iPage);
    1551                         if (VBOX_SUCCESS(rc2) && pNode->pfnHandlerHC)
     1551                        if (VBOX_SUCCESS(rc2) && pNode->pfnHandlerR3)
    15521552                        {
    15531553                            size_t cbRange = pNode->Core.KeyLast - GCPhys + 1;
     
    15611561                            void *pvDst = PGMRAMRANGE_GETHCPTR(pRam, off)
    15621562
    1563                             /** @tode Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */
    1564                             rc = pNode->pfnHandlerHC(pVM, (RTGCPTR)GCPtr, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, 0);
     1563                            /* Note! Dangerous assumption that R3 handlers don't do anything that really requires an EMT lock! */
     1564                            rc = pNode->pfnHandlerR3(pVM, (RTGCPTR)GCPtr, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, 0);
    15651565                        }
    15661566#endif /* IN_RING3 */
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