Changeset 14148 in vbox for trunk/src/VBox
- Timestamp:
- Nov 12, 2008 11:20:06 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 39239
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r14147 r14148 1451 1451 1452 1452 /* get physical addresses. */ 1453 pVM->pgm.s.HCPhys 32BitPD = MMPage2Phys(pVM, pVM->pgm.s.pShw32BitPdR3);1454 Assert(MMPagePhys2Page(pVM, pVM->pgm.s.HCPhys 32BitPD) == 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); 1455 1455 pVM->pgm.s.aHCPhysPaePDs[0] = MMPage2Phys(pVM, pVM->pgm.s.apShwPaePDsR3[0]); 1456 1456 pVM->pgm.s.aHCPhysPaePDs[1] = MMPage2Phys(pVM, pVM->pgm.s.apShwPaePDsR3[1]); … … 1473 1473 } 1474 1474 1475 CPUMSetHyperCR3(pVM, (uint32_t)pVM->pgm.s.HCPhys 32BitPD);1475 CPUMSetHyperCR3(pVM, (uint32_t)pVM->pgm.s.HCPhysShw32BitPD); 1476 1476 1477 1477 /* … … 1514 1514 LogFlow(("pgmR3InitPaging: returns successfully\n")); 1515 1515 #if HC_ARCH_BITS == 64 1516 LogRel(("Debug: HCPhys 32BitPD=%RHp aHCPhysPaePDs={%RHp,%RHp,%RHp,%RHp} HCPhysPaePDPT=%RHp HCPhysPaePML4=%RHp\n",1517 pVM->pgm.s.HCPhys 32BitPD,1516 LogRel(("Debug: HCPhysShw32BitPD=%RHp aHCPhysPaePDs={%RHp,%RHp,%RHp,%RHp} HCPhysPaePDPT=%RHp HCPhysPaePML4=%RHp\n", 1517 pVM->pgm.s.HCPhysShw32BitPD, 1518 1518 pVM->pgm.s.aHCPhysPaePDs[0], pVM->pgm.s.aHCPhysPaePDs[1], pVM->pgm.s.aHCPhysPaePDs[2], pVM->pgm.s.aHCPhysPaePDs[3], 1519 1519 pVM->pgm.s.HCPhysPaePDPT, … … 1816 1816 AssertReleaseReturn(GCPtr, VERR_INTERNAL_ERROR); 1817 1817 1818 int rc = PGMMap(pVM, GCPtr, pVM->pgm.s.HCPhys 32BitPD, PAGE_SIZE, 0);1818 int rc = PGMMap(pVM, GCPtr, pVM->pgm.s.HCPhysShw32BitPD, PAGE_SIZE, 0); 1819 1819 AssertRCReturn(rc, rc); 1820 1820 pVM->pgm.s.pShw32BitPdRC = GCPtr; -
trunk/src/VBox/VMM/PGMInternal.h
r14147 r14148 2052 2052 #endif 2053 2053 /** The Physical Address (HC) of the 32-Bit PD. */ 2054 RTHCPHYS HCPhys 32BitPD;2054 RTHCPHYS HCPhysShw32BitPD; 2055 2055 /** @} */ 2056 2056 … … 3812 3812 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3813 3813 PX86PD pShwPd; 3814 Assert(pPGM->HCPhys 32BitPD != 0 && pPGM->HCPhys32BitPD != NIL_RTHCPHYS);3815 int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhys 32BitPD, &pShwPd);3814 Assert(pPGM->HCPhysShw32BitPD != 0 && pPGM->HCPhysShw32BitPD != NIL_RTHCPHYS); 3815 int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhysShw32BitPD, &pShwPd); 3816 3816 AssertRCReturn(rc, NULL); 3817 3817 return pShwPd; … … 3834 3834 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3835 3835 PCX86PD pShwPd; 3836 Assert(pPGM->HCPhys 32BitPD != 0 && pPGM->HCPhys32BitPD != NIL_RTHCPHYS);3837 int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhys 32BitPD, &pShwPd);3836 Assert(pPGM->HCPhysShw32BitPD != 0 && pPGM->HCPhysShw32BitPD != NIL_RTHCPHYS); 3837 int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhysShw32BitPD, &pShwPd); 3838 3838 if (RT_FAILURE(rc)) 3839 3839 { … … 3861 3861 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3862 3862 PX86PD pShwPd; 3863 Assert(pPGM->HCPhys 32BitPD != 0 && pPGM->HCPhys32BitPD != NIL_RTHCPHYS);3864 int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhys 32BitPD, &pShwPd);3863 Assert(pPGM->HCPhysShw32BitPD != 0 && pPGM->HCPhysShw32BitPD != NIL_RTHCPHYS); 3864 int rc = PGM_HCPHYS_2_PTR(PGM2VM(pPGM), pPGM->HCPhysShw32BitPD, &pShwPd); 3865 3865 AssertRCReturn(rc, NULL); 3866 3866 return &pShwPd->a[iPd]; -
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r14141 r14148 1257 1257 { 1258 1258 case PGMMODE_32_BIT: 1259 return pVM->pgm.s.HCPhys 32BitPD;1259 return pVM->pgm.s.HCPhysShw32BitPD; 1260 1260 1261 1261 case PGMMODE_PAE: … … 1290 1290 { 1291 1291 case PGMMODE_32_BIT: 1292 return pVM->pgm.s.HCPhys 32BitPD;1292 return pVM->pgm.s.HCPhysShw32BitPD; 1293 1293 1294 1294 case PGMMODE_PAE: … … 1325 1325 VMMDECL(RTHCPHYS) PGMGetHyper32BitCR3(PVM pVM) 1326 1326 { 1327 return pVM->pgm.s.HCPhys 32BitPD;1327 return pVM->pgm.s.HCPhysShw32BitPD; 1328 1328 } 1329 1329 -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r14147 r14148 134 134 { 135 135 case PGMPOOL_IDX_PD: 136 HCPhys = pVM->pgm.s.HCPhys 32BitPD;136 HCPhys = pVM->pgm.s.HCPhysShw32BitPD; 137 137 break; 138 138 case PGMPOOL_IDX_PAE_PD: -
trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp
r14147 r14148 418 418 #endif 419 419 GEN_CHECK_OFF(PGM, pShw32BitPdRC); 420 GEN_CHECK_OFF(PGM, HCPhys 32BitPD);420 GEN_CHECK_OFF(PGM, HCPhysShw32BitPD); 421 421 GEN_CHECK_OFF(PGM, apShwPaePDsR3); 422 422 #ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
Note:
See TracChangeset
for help on using the changeset viewer.