VirtualBox

Changeset 12794 in vbox for trunk/src


Ignore:
Timestamp:
Sep 29, 2008 12:51:37 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37139
Message:

#1865: Added a pVMRC member to VM so I can gradually convert away from pVMGC.

File:
1 edited

Legend:

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

    r12792 r12794  
    104104        if (VBOX_SUCCESS(rc))
    105105        {
    106             pVM->pVMGC = (RTGCPTR32)GCPtr;
     106            pVM->pVMRC = (RTGCPTR32)GCPtr;
     107            pVM->pVMGC = pVM->pVMRC;
    107108            for (uint32_t i = 0; i < pVM->cCPUs; i++)
    108                 pVM->aCpus[i].pVMRC = pVM->pVMGC;
     109                pVM->aCpus[i].pVMRC = pVM->pVMRC;
    109110
    110111            /* Reserve a page for fencing. */
     
    281282             */
    282283            RTGCINTPTR      offDelta = GCPtrNew - GCPtrOld;
    283             pVM->pVMGC                          += offDelta;
     284            pVM->pVMRC                          += offDelta;
     285            pVM->pVMGC                          = pVM->pVMRC;
    284286            for (uint32_t i = 0; i < pVM->cCPUs; i++)
    285                 pVM->aCpus[i].pVMRC = pVM->pVMGC;
     287                pVM->aCpus[i].pVMRC             = pVM->pVMRC;
    286288
    287289            pVM->mm.s.pvHyperAreaGC             += offDelta;
    288290            pVM->mm.s.pHyperHeapGC              += offDelta;
    289291            pVM->mm.s.pHyperHeapHC->pbHeapRC    += offDelta;
    290             pVM->mm.s.pHyperHeapHC->pVMRC        = pVM->pVMGC;
     292            pVM->mm.s.pHyperHeapHC->pVMRC        = pVM->pVMRC;
    291293
    292294            /*
     
    787789        pHeap->pVMR3                = pVM;
    788790        pHeap->pVMR0                = pVM->pVMR0;
    789         pHeap->pVMRC                = pVM->pVMGC;
     791        pHeap->pVMRC                = pVM->pVMRC;
    790792        pHeap->cbHeap               = cbAligned - MMYPERHEAP_HDR_SIZE;
    791793        pHeap->cbFree               = pHeap->cbHeap - sizeof(MMHYPERCHUNK);
     
    824826    if (VBOX_SUCCESS(rc))
    825827    {
    826         pHeap->pVMRC    = pVM->pVMGC;
     828        pHeap->pVMRC    = pVM->pVMRC;
    827829        pHeap->pbHeapRC = *ppHeapGC + MMYPERHEAP_HDR_SIZE;
    828830        /* Reserve a page for fencing. */
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