VirtualBox

Changeset 14148 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 12, 2008 11:20:06 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39239
Message:

PGM: HCPhys32BitPD -> HCPhysShw32BitPD

Location:
trunk/src/VBox/VMM
Files:
5 edited

Legend:

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

    r14147 r14148  
    14511451
    14521452    /* get physical addresses. */
    1453     pVM->pgm.s.HCPhys32BitPD    = MMPage2Phys(pVM, pVM->pgm.s.pShw32BitPdR3);
    1454     Assert(MMPagePhys2Page(pVM, pVM->pgm.s.HCPhys32BitPD) == pVM->pgm.s.pShw32BitPdR3);
     1453    pVM->pgm.s.HCPhysShw32BitPD    = MMPage2Phys(pVM, pVM->pgm.s.pShw32BitPdR3);
     1454    Assert(MMPagePhys2Page(pVM, pVM->pgm.s.HCPhysShw32BitPD) == pVM->pgm.s.pShw32BitPdR3);
    14551455    pVM->pgm.s.aHCPhysPaePDs[0] = MMPage2Phys(pVM, pVM->pgm.s.apShwPaePDsR3[0]);
    14561456    pVM->pgm.s.aHCPhysPaePDs[1] = MMPage2Phys(pVM, pVM->pgm.s.apShwPaePDsR3[1]);
     
    14731473    }
    14741474
    1475     CPUMSetHyperCR3(pVM, (uint32_t)pVM->pgm.s.HCPhys32BitPD);
     1475    CPUMSetHyperCR3(pVM, (uint32_t)pVM->pgm.s.HCPhysShw32BitPD);
    14761476
    14771477    /*
     
    15141514        LogFlow(("pgmR3InitPaging: returns successfully\n"));
    15151515#if HC_ARCH_BITS == 64
    1516         LogRel(("Debug: HCPhys32BitPD=%RHp aHCPhysPaePDs={%RHp,%RHp,%RHp,%RHp} HCPhysPaePDPT=%RHp HCPhysPaePML4=%RHp\n",
    1517                 pVM->pgm.s.HCPhys32BitPD,
     1516        LogRel(("Debug: HCPhysShw32BitPD=%RHp aHCPhysPaePDs={%RHp,%RHp,%RHp,%RHp} HCPhysPaePDPT=%RHp HCPhysPaePML4=%RHp\n",
     1517                pVM->pgm.s.HCPhysShw32BitPD,
    15181518                pVM->pgm.s.aHCPhysPaePDs[0], pVM->pgm.s.aHCPhysPaePDs[1], pVM->pgm.s.aHCPhysPaePDs[2], pVM->pgm.s.aHCPhysPaePDs[3],
    15191519                pVM->pgm.s.HCPhysPaePDPT,
     
    18161816    AssertReleaseReturn(GCPtr, VERR_INTERNAL_ERROR);
    18171817
    1818     int rc = PGMMap(pVM, GCPtr, pVM->pgm.s.HCPhys32BitPD, PAGE_SIZE, 0);
     1818    int rc = PGMMap(pVM, GCPtr, pVM->pgm.s.HCPhysShw32BitPD, PAGE_SIZE, 0);
    18191819    AssertRCReturn(rc, rc);
    18201820    pVM->pgm.s.pShw32BitPdRC = GCPtr;
  • trunk/src/VBox/VMM/PGMInternal.h

    r14147 r14148  
    20522052#endif
    20532053    /** The Physical Address (HC) of the 32-Bit PD. */
    2054     RTHCPHYS                        HCPhys32BitPD;
     2054    RTHCPHYS                        HCPhysShw32BitPD;
    20552055    /** @} */
    20562056
     
    38123812#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    38133813    PX86PD          pShwPd;
    3814     Assert(pPGM->HCPhys32BitPD != 0 && pPGM->HCPhys32BitPD != NIL_RTHCPHYS);
    3815     int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhys32BitPD, &pShwPd);
     3814    Assert(pPGM->HCPhysShw32BitPD != 0 && pPGM->HCPhysShw32BitPD != NIL_RTHCPHYS);
     3815    int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhysShw32BitPD, &pShwPd);
    38163816    AssertRCReturn(rc, NULL);
    38173817    return pShwPd;
     
    38343834#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    38353835    PCX86PD         pShwPd;
    3836     Assert(pPGM->HCPhys32BitPD != 0 && pPGM->HCPhys32BitPD != NIL_RTHCPHYS);
    3837     int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhys32BitPD, &pShwPd);
     3836    Assert(pPGM->HCPhysShw32BitPD != 0 && pPGM->HCPhysShw32BitPD != NIL_RTHCPHYS);
     3837    int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhysShw32BitPD, &pShwPd);
    38383838    if (RT_FAILURE(rc))
    38393839    {
     
    38613861#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    38623862    PX86PD          pShwPd;
    3863     Assert(pPGM->HCPhys32BitPD != 0 && pPGM->HCPhys32BitPD != NIL_RTHCPHYS);
    3864     int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhys32BitPD, &pShwPd);
     3863    Assert(pPGM->HCPhysShw32BitPD != 0 && pPGM->HCPhysShw32BitPD != NIL_RTHCPHYS);
     3864    int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhysShw32BitPD, &pShwPd);
    38653865    AssertRCReturn(rc, NULL);
    38663866    return &pShwPd->a[iPd];
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r14141 r14148  
    12571257    {
    12581258        case PGMMODE_32_BIT:
    1259             return pVM->pgm.s.HCPhys32BitPD;
     1259            return pVM->pgm.s.HCPhysShw32BitPD;
    12601260
    12611261        case PGMMODE_PAE:
     
    12901290    {
    12911291        case PGMMODE_32_BIT:
    1292             return pVM->pgm.s.HCPhys32BitPD;
     1292            return pVM->pgm.s.HCPhysShw32BitPD;
    12931293
    12941294        case PGMMODE_PAE:
     
    13251325VMMDECL(RTHCPHYS) PGMGetHyper32BitCR3(PVM pVM)
    13261326{
    1327     return pVM->pgm.s.HCPhys32BitPD;
     1327    return pVM->pgm.s.HCPhysShw32BitPD;
    13281328}
    13291329
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r14147 r14148  
    134134    {
    135135        case PGMPOOL_IDX_PD:
    136             HCPhys = pVM->pgm.s.HCPhys32BitPD;
     136            HCPhys = pVM->pgm.s.HCPhysShw32BitPD;
    137137            break;
    138138        case PGMPOOL_IDX_PAE_PD:
  • trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp

    r14147 r14148  
    418418#endif
    419419    GEN_CHECK_OFF(PGM, pShw32BitPdRC);
    420     GEN_CHECK_OFF(PGM, HCPhys32BitPD);
     420    GEN_CHECK_OFF(PGM, HCPhysShw32BitPD);
    421421    GEN_CHECK_OFF(PGM, apShwPaePDsR3);
    422422#ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
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