Changeset 32000 in vbox for trunk/src/VBox
- Timestamp:
- Aug 26, 2010 2:08:55 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp
r31996 r32000 2731 2731 return DBGCCmdHlpPrintf(pCmdHlp, "Page directory pointer table is not present for %Dv.\n", &VarGCPtr); 2732 2732 2733 VarCur.u.u64Number = Pml4e.u & X86_PML4E_PG_MASK _FULL;2733 VarCur.u.u64Number = Pml4e.u & X86_PML4E_PG_MASK; 2734 2734 Assert(fPAE); 2735 2735 } … … 3102 3102 return DBGCCmdHlpPrintf(pCmdHlp, "Page directory pointer table is not present for %Dv.\n", &VarGCPtr); 3103 3103 3104 VarCur.u.u64Number = Pml4e.u & X86_PML4E_PG_MASK _FULL;3104 VarCur.u.u64Number = Pml4e.u & X86_PML4E_PG_MASK; 3105 3105 Assert(fPAE); 3106 3106 } -
trunk/src/VBox/VMM/PGMDbg.cpp
r31996 r32000 1376 1376 Pml4e.u & PGM_PLXFLAGS_PERMANENT ? 'p' : '-', 1377 1377 Pml4e.u & RT_BIT(11) ? '1' : '0', 1378 Pml4e.u & X86_PML4E_PG_MASK _FULL);1378 Pml4e.u & X86_PML4E_PG_MASK); 1379 1379 if (pState->fDumpPageInfo) 1380 pgmR3DumpHierarchyShwTablePageInfo(pState, Pml4e.u & X86_PML4E_PG_MASK _FULL);1380 pgmR3DumpHierarchyShwTablePageInfo(pState, Pml4e.u & X86_PML4E_PG_MASK); 1381 1381 if ((Pml4e.u >> 52) & 0x7ff) 1382 1382 pState->pHlp->pfnPrintf(pState->pHlp, " 62:52=%03llx!", (Pml4e.u >> 52) & 0x7ff); … … 1385 1385 if (cMaxDepth) 1386 1386 { 1387 int rc2 = pgmR3DumpHierarchyShwPaePDPT(pState, Pml4e.u & X86_PML4E_PG_MASK _FULL, cMaxDepth);1387 int rc2 = pgmR3DumpHierarchyShwPaePDPT(pState, Pml4e.u & X86_PML4E_PG_MASK, cMaxDepth); 1388 1388 if (rc2 < rc && RT_SUCCESS(rc)) 1389 1389 rc = rc2; … … 2049 2049 Pml4e.u & RT_BIT_64(10) ? '1' : '0', 2050 2050 Pml4e.u & RT_BIT_64(11) ? '1' : '0', 2051 Pml4e.u & X86_PML4E_PG_MASK _FULL);2051 Pml4e.u & X86_PML4E_PG_MASK); 2052 2052 if (pState->fDumpPageInfo) 2053 pgmR3DumpHierarchyGstPageInfo(pState, Pml4e.u & X86_PML4E_PG_MASK _FULL, _4K);2053 pgmR3DumpHierarchyGstPageInfo(pState, Pml4e.u & X86_PML4E_PG_MASK, _4K); 2054 2054 pgmR3DumpHierarchyGstCheckReservedHighBits(pState, Pml4e.u); 2055 2055 pState->pHlp->pfnPrintf(pState->pHlp, "\n"); … … 2057 2057 if (cMaxDepth) 2058 2058 { 2059 int rc2 = pgmR3DumpHierarchyGstPaePDPT(pState, Pml4e.u & X86_PML4E_PG_MASK _FULL, cMaxDepth);2059 int rc2 = pgmR3DumpHierarchyGstPaePDPT(pState, Pml4e.u & X86_PML4E_PG_MASK, cMaxDepth); 2060 2060 if (rc2 < rc && RT_SUCCESS(rc)) 2061 2061 rc = rc2; -
trunk/src/VBox/VMM/PGMInline.h
r31996 r32000 924 924 { 925 925 PCX86PDPT pPdptTemp; 926 int rc = PGM_GCPHYS_2_PTR_BY_VMCPU(pVCpu, pGuestPml4->a[iPml4].u & X86_PML4E_PG_MASK _FULL, &pPdptTemp);926 int rc = PGM_GCPHYS_2_PTR_BY_VMCPU(pVCpu, pGuestPml4->a[iPml4].u & X86_PML4E_PG_MASK, &pPdptTemp); 927 927 if (RT_SUCCESS(rc)) 928 928 { … … 974 974 /* The PDPE. */ 975 975 PCX86PDPT pPdptTemp; 976 int rc = PGM_GCPHYS_2_PTR_BY_VMCPU(pVCpu, pPml4e->u & X86_PML4E_PG_MASK _FULL, &pPdptTemp);976 int rc = PGM_GCPHYS_2_PTR_BY_VMCPU(pVCpu, pPml4e->u & X86_PML4E_PG_MASK, &pPdptTemp); 977 977 if (RT_FAILURE(rc)) 978 978 { -
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r31998 r32000 1074 1074 /* Allocate page directory pointer table if not present. */ 1075 1075 if ( !pPml4e->n.u1Present 1076 && !(pPml4e->u & X86_PML4E_PG_MASK _FULL))1076 && !(pPml4e->u & X86_PML4E_PG_MASK)) 1077 1077 { 1078 1078 RTGCPTR64 GCPml4; … … 1089 1089 else 1090 1090 { 1091 GCPml4 = uGstPml4e & X86_PML4E_PG_MASK _FULL;1091 GCPml4 = uGstPml4e & X86_PML4E_PG_MASK; 1092 1092 enmKind = PGMPOOLKIND_64BIT_PDPT_FOR_64BIT_PDPT; 1093 1093 } … … 1099 1099 else 1100 1100 { 1101 pShwPage = pgmPoolGetPage(pPool, pPml4e->u & X86_PML4E_PG_MASK _FULL);1101 pShwPage = pgmPoolGetPage(pPool, pPml4e->u & X86_PML4E_PG_MASK); 1102 1102 AssertReturn(pShwPage, VERR_INTERNAL_ERROR); 1103 1103 … … 1177 1177 PVM pVM = pVCpu->CTX_SUFF(pVM); 1178 1178 PPGMPOOL pPool = pVM->pgm.s.CTX_SUFF(pPool); 1179 PPGMPOOLPAGE pShwPage = pgmPoolGetPage(pPool, pPml4e->u & X86_PML4E_PG_MASK _FULL);1179 PPGMPOOLPAGE pShwPage = pgmPoolGetPage(pPool, pPml4e->u & X86_PML4E_PG_MASK); 1180 1180 AssertReturn(pShwPage, VERR_INTERNAL_ERROR); 1181 1181 -
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r31998 r32000 3669 3669 } 3670 3670 3671 pShwPdpt = pgmPoolGetPage(pPool, pPml4eDst->u & X86_PML4E_PG_MASK _FULL);3672 GCPhysPdptSrc = pPml4eSrc->u & X86_PML4E_PG_MASK _FULL;3671 pShwPdpt = pgmPoolGetPage(pPool, pPml4eDst->u & X86_PML4E_PG_MASK); 3672 GCPhysPdptSrc = pPml4eSrc->u & X86_PML4E_PG_MASK; 3673 3673 3674 3674 if (pPml4eSrc->n.u1Present != pPml4eDst->n.u1Present) -
trunk/src/VBox/VMM/VMMAll/PGMAllGst.h
r31996 r32000 115 115 * The PDPE. 116 116 */ 117 rc = PGM_GCPHYS_2_PTR_BY_VMCPU(pVCpu, Pml4e.u & X86_PML4E_PG_MASK _FULL, &pWalk->pPdpt);117 rc = PGM_GCPHYS_2_PTR_BY_VMCPU(pVCpu, Pml4e.u & X86_PML4E_PG_MASK, &pWalk->pPdpt); 118 118 if (RT_FAILURE(rc)) 119 119 return PGM_GST_NAME(WalkReturnBadPhysAddr)(pVCpu, pWalk, 3, rc); -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r31998 r32000 662 662 { 663 663 LogFlow(("pgmPoolMonitorChainChanging: pml4 iShw=%#x: %RX64 -> freeing it!\n", iShw, uShw.pPML4->a[iShw].u)); 664 pgmPoolFree(pVM, uShw.pPML4->a[iShw].u & X86_PML4E_PG_MASK _FULL, pPage->idx, iShw);664 pgmPoolFree(pVM, uShw.pPML4->a[iShw].u & X86_PML4E_PG_MASK, pPage->idx, iShw); 665 665 ASMAtomicWriteSize(&uShw.pPML4->a[iShw].u, 0); 666 666 } … … 673 673 { 674 674 LogFlow(("pgmPoolMonitorChainChanging: pml4 iShw2=%#x: %RX64 -> freeing it!\n", iShw2, uShw.pPML4->a[iShw2].u)); 675 pgmPoolFree(pVM, uShw.pPML4->a[iShw2].u & X86_PML4E_PG_MASK _FULL, pPage->idx, iShw2);675 pgmPoolFree(pVM, uShw.pPML4->a[iShw2].u & X86_PML4E_PG_MASK, pPage->idx, iShw2); 676 676 ASMAtomicWriteSize(&uShw.pPML4->a[iShw2].u, 0); 677 677 } … … 4348 4348 pgmPoolTrackFreeUser(pPool, pSubPage, pPage->idx, i); 4349 4349 else 4350 AssertFatalMsgFailed(("%RX64\n", pShwPML4->a[i].u & X86_PML4E_PG_MASK _FULL));4350 AssertFatalMsgFailed(("%RX64\n", pShwPML4->a[i].u & X86_PML4E_PG_MASK)); 4351 4351 /** @todo 64-bit guests: have to ensure that we're not exhausting the dynamic mappings! */ 4352 4352 } -
trunk/src/VBox/VMM/VMMAll/PGMAllShw.h
r31998 r32000 217 217 /* PDPT */ 218 218 PX86PDPT pPDPT; 219 int rc = PGM_HCPHYS_2_PTR(pVM, pVCpu, Pml4e.u & X86_PML4E_PG_MASK _FULL, &pPDPT);219 int rc = PGM_HCPHYS_2_PTR(pVM, pVCpu, Pml4e.u & X86_PML4E_PG_MASK, &pPDPT); 220 220 if (RT_FAILURE(rc)) 221 221 return rc; … … 383 383 /* PDPT */ 384 384 PX86PDPT pPDPT; 385 rc = PGM_HCPHYS_2_PTR(pVM, pVCpu, Pml4e.u & X86_PML4E_PG_MASK _FULL, &pPDPT);385 rc = PGM_HCPHYS_2_PTR(pVM, pVCpu, Pml4e.u & X86_PML4E_PG_MASK, &pPDPT); 386 386 if (RT_FAILURE(rc)) 387 387 return rc; -
trunk/src/VBox/VMM/VMMRZ/PGMRZDynMap.cpp
r31995 r32000 756 756 pPgLvl->a[0].fResMask = X86_PML4E_P | X86_PML4E_RW; 757 757 758 pPgLvl->a[1].fPhysMask = X86_PML4E_PG_MASK _FULL;758 pPgLvl->a[1].fPhysMask = X86_PML4E_PG_MASK; 759 759 pPgLvl->a[1].fPtrShift = X86_PDPT_SHIFT; 760 760 pPgLvl->a[1].fPtrMask = X86_PDPT_MASK_AMD64;
Note:
See TracChangeset
for help on using the changeset viewer.