VirtualBox

Changeset 80181 in vbox for trunk/src/VBox/VMM/VMMR3/PGM.cpp


Ignore:
Timestamp:
Aug 7, 2019 10:49:52 AM (5 years ago)
Author:
vboxsync
Message:

VMM: Kicking out raw-mode - Bunch of RCPTRTYPE use in PGM. bugref:9517

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PGM.cpp

    r80180 r80181  
    804804        pPGM->pGstAmd64Pml4R0   = NIL_RTR0PTR;
    805805#endif
    806         pPGM->pGst32BitPdRC     = NIL_RTRCPTR;
    807         pPGM->pGstPaePdptRC     = NIL_RTRCPTR;
    808806        for (unsigned i = 0; i < RT_ELEMENTS(pVCpu->pgm.s.apGstPaePDsR3); i++)
    809807        {
     
    812810            pPGM->apGstPaePDsR0[i]             = NIL_RTR0PTR;
    813811#endif
    814             pPGM->apGstPaePDsRC[i]             = NIL_RTRCPTR;
    815812            pPGM->aGCPhysGstPaePDs[i]          = NIL_RTGCPHYS;
    816813            pPGM->aGstPaePdpeRegs[i].u         = UINT64_MAX;
     
    893890    pVM->pgm.s.pStatsR3 = (PGMSTATS *)pv;
    894891    pVM->pgm.s.pStatsR0 = MMHyperCCToR0(pVM, pv);
    895     pVM->pgm.s.pStatsRC = MMHyperCCToRC(pVM, pv);
    896892    pv = (uint8_t *)pv + RT_ALIGN_Z(sizeof(PGMSTATS), 64);
    897893
     
    900896        pVM->aCpus[iCpu].pgm.s.pStatsR3 = (PGMCPUSTATS *)pv;
    901897        pVM->aCpus[iCpu].pgm.s.pStatsR0 = MMHyperCCToR0(pVM, pv);
    902         pVM->aCpus[iCpu].pgm.s.pStatsRC = MMHyperCCToRC(pVM, pv);
    903898
    904899        pv = (uint8_t *)pv + RT_ALIGN_Z(sizeof(PGMCPUSTATS), 64);
     
    939934    rc = MMHyperAlloc(pVM, sizeof(PGMTREES), 0, MM_TAG_PGM, (void **)&pVM->pgm.s.pTreesR3);
    940935    if (RT_SUCCESS(rc))
    941     {
    942936        pVM->pgm.s.pTreesR0 = MMHyperR3ToR0(pVM, pVM->pgm.s.pTreesR3);
    943         pVM->pgm.s.pTreesRC = MMHyperR3ToRC(pVM, pVM->pgm.s.pTreesR3);
    944     }
    945937
    946938    /*
     
    18731865
    18741866    /*
    1875      * Trees.
    1876      */
    1877     pVM->pgm.s.pTreesRC = MMHyperR3ToRC(pVM, pVM->pgm.s.pTreesR3);
    1878 
    1879     /*
    18801867     * Ram ranges.
    18811868     */
     
    18871874                pCur->pSelfRC = MMHyperCCToRC(pVM, pCur);
    18881875        pgmR3PhysRelinkRamRanges(pVM);
    1889 
    1890         /* Flush the RC TLB. */
    1891         for (unsigned i = 0; i < PGM_RAMRANGE_TLB_ENTRIES; i++)
    1892             pVM->pgm.s.apRamRangesTlbRC[i] = NIL_RTRCPTR;
    18931876    }
    18941877
     
    19571940    PGMRELOCHANDLERARGS Args = { offDelta, pVM };
    19581941    RTAvlroGCPhysDoWithAll(&pVM->pgm.s.pTreesR3->PhysHandlers,     true, pgmR3RelocatePhysHandler,      &Args);
    1959     pVM->pgm.s.pLastPhysHandlerRC = NIL_RTRCPTR;
    19601942
    19611943    PPGMPHYSHANDLERTYPEINT pCurPhysType;
     
    19721954     */
    19731955    pgmR3PoolRelocate(pVM);
    1974 
    1975 #ifdef VBOX_WITH_STATISTICS
    1976     /*
    1977      * Statistics.
    1978      */
    1979     pVM->pgm.s.pStatsRC = MMHyperCCToRC(pVM, pVM->pgm.s.pStatsR3);
    1980     for (VMCPUID iCpu = 0; iCpu < pVM->cCpus; iCpu++)
    1981         pVM->aCpus[iCpu].pgm.s.pStatsRC = MMHyperCCToRC(pVM, pVM->aCpus[iCpu].pgm.s.pStatsR3);
    1982 #endif
    19831956}
    19841957
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