VirtualBox

Changeset 32000 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 26, 2010 2:08:55 PM (14 years ago)
Author:
vboxsync
Message:

x86.h,*: Eliminated X86_PML4E_PG_MASK and renamed X86_PML4E_PG_MASK_FULL to X86_PML4E_PG_MASK.

Location:
trunk/src/VBox
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp

    r31996 r32000  
    27312731                return DBGCCmdHlpPrintf(pCmdHlp, "Page directory pointer table is not present for %Dv.\n", &VarGCPtr);
    27322732
    2733             VarCur.u.u64Number = Pml4e.u & X86_PML4E_PG_MASK_FULL;
     2733            VarCur.u.u64Number = Pml4e.u & X86_PML4E_PG_MASK;
    27342734            Assert(fPAE);
    27352735        }
     
    31023102                return DBGCCmdHlpPrintf(pCmdHlp, "Page directory pointer table is not present for %Dv.\n", &VarGCPtr);
    31033103
    3104             VarCur.u.u64Number = Pml4e.u & X86_PML4E_PG_MASK_FULL;
     3104            VarCur.u.u64Number = Pml4e.u & X86_PML4E_PG_MASK;
    31053105            Assert(fPAE);
    31063106        }
  • trunk/src/VBox/VMM/PGMDbg.cpp

    r31996 r32000  
    13761376                                    Pml4e.u & PGM_PLXFLAGS_PERMANENT   ? 'p' : '-',
    13771377                                    Pml4e.u & RT_BIT(11)               ? '1' : '0',
    1378                                     Pml4e.u & X86_PML4E_PG_MASK_FULL);
     1378                                    Pml4e.u & X86_PML4E_PG_MASK);
    13791379            if (pState->fDumpPageInfo)
    1380                 pgmR3DumpHierarchyShwTablePageInfo(pState, Pml4e.u & X86_PML4E_PG_MASK_FULL);
     1380                pgmR3DumpHierarchyShwTablePageInfo(pState, Pml4e.u & X86_PML4E_PG_MASK);
    13811381            if ((Pml4e.u >> 52) & 0x7ff)
    13821382                pState->pHlp->pfnPrintf(pState->pHlp, " 62:52=%03llx!", (Pml4e.u >> 52) & 0x7ff);
     
    13851385            if (cMaxDepth)
    13861386            {
    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);
    13881388                if (rc2 < rc && RT_SUCCESS(rc))
    13891389                    rc = rc2;
     
    20492049                                    Pml4e.u & RT_BIT_64(10) ? '1' : '0',
    20502050                                    Pml4e.u & RT_BIT_64(11) ? '1' : '0',
    2051                                     Pml4e.u & X86_PML4E_PG_MASK_FULL);
     2051                                    Pml4e.u & X86_PML4E_PG_MASK);
    20522052            if (pState->fDumpPageInfo)
    2053                 pgmR3DumpHierarchyGstPageInfo(pState, Pml4e.u & X86_PML4E_PG_MASK_FULL, _4K);
     2053                pgmR3DumpHierarchyGstPageInfo(pState, Pml4e.u & X86_PML4E_PG_MASK, _4K);
    20542054            pgmR3DumpHierarchyGstCheckReservedHighBits(pState, Pml4e.u);
    20552055            pState->pHlp->pfnPrintf(pState->pHlp, "\n");
     
    20572057            if (cMaxDepth)
    20582058            {
    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);
    20602060                if (rc2 < rc && RT_SUCCESS(rc))
    20612061                    rc = rc2;
  • trunk/src/VBox/VMM/PGMInline.h

    r31996 r32000  
    924924    {
    925925        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);
    927927        if (RT_SUCCESS(rc))
    928928        {
     
    974974    /* The PDPE. */
    975975    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);
    977977    if (RT_FAILURE(rc))
    978978    {
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r31998 r32000  
    10741074    /* Allocate page directory pointer table if not present. */
    10751075    if (    !pPml4e->n.u1Present
    1076         &&  !(pPml4e->u & X86_PML4E_PG_MASK_FULL))
     1076        &&  !(pPml4e->u & X86_PML4E_PG_MASK))
    10771077    {
    10781078        RTGCPTR64   GCPml4;
     
    10891089        else
    10901090        {
    1091             GCPml4  = uGstPml4e & X86_PML4E_PG_MASK_FULL;
     1091            GCPml4  = uGstPml4e & X86_PML4E_PG_MASK;
    10921092            enmKind = PGMPOOLKIND_64BIT_PDPT_FOR_64BIT_PDPT;
    10931093        }
     
    10991099    else
    11001100    {
    1101         pShwPage = pgmPoolGetPage(pPool, pPml4e->u & X86_PML4E_PG_MASK_FULL);
     1101        pShwPage = pgmPoolGetPage(pPool, pPml4e->u & X86_PML4E_PG_MASK);
    11021102        AssertReturn(pShwPage, VERR_INTERNAL_ERROR);
    11031103
     
    11771177    PVM             pVM      = pVCpu->CTX_SUFF(pVM);
    11781178    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);
    11801180    AssertReturn(pShwPage, VERR_INTERNAL_ERROR);
    11811181
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r31998 r32000  
    36693669        }
    36703670
    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;
    36733673
    36743674        if (pPml4eSrc->n.u1Present != pPml4eDst->n.u1Present)
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r31996 r32000  
    115115         * The PDPE.
    116116         */
    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);
    118118        if (RT_FAILURE(rc))
    119119            return PGM_GST_NAME(WalkReturnBadPhysAddr)(pVCpu, pWalk, 3, rc);
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r31998 r32000  
    662662                {
    663663                    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);
    665665                    ASMAtomicWriteSize(&uShw.pPML4->a[iShw].u, 0);
    666666                }
     
    673673                    {
    674674                        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);
    676676                        ASMAtomicWriteSize(&uShw.pPML4->a[iShw2].u, 0);
    677677                    }
     
    43484348                pgmPoolTrackFreeUser(pPool, pSubPage, pPage->idx, i);
    43494349            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));
    43514351            /** @todo 64-bit guests: have to ensure that we're not exhausting the dynamic mappings! */
    43524352        }
  • trunk/src/VBox/VMM/VMMAll/PGMAllShw.h

    r31998 r32000  
    217217    /* PDPT */
    218218    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);
    220220    if (RT_FAILURE(rc))
    221221        return rc;
     
    383383        /* PDPT */
    384384        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);
    386386        if (RT_FAILURE(rc))
    387387            return rc;
  • trunk/src/VBox/VMM/VMMRZ/PGMRZDynMap.cpp

    r31995 r32000  
    756756            pPgLvl->a[0].fResMask  = X86_PML4E_P | X86_PML4E_RW;
    757757
    758             pPgLvl->a[1].fPhysMask = X86_PML4E_PG_MASK_FULL;
     758            pPgLvl->a[1].fPhysMask = X86_PML4E_PG_MASK;
    759759            pPgLvl->a[1].fPtrShift = X86_PDPT_SHIFT;
    760760            pPgLvl->a[1].fPtrMask  = X86_PDPT_MASK_AMD64;
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