VirtualBox

Changeset 14153 in vbox


Ignore:
Timestamp:
Nov 12, 2008 11:30:34 PM (16 years ago)
Author:
vboxsync
Message:

PGM: pGstPaePDPT -> pGstPaePdpt

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

Legend:

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

    r14151 r14153  
    11421142    pVM->pgm.s.fA20Enabled      = true;
    11431143    pVM->pgm.s.GCPhys4MBPSEMask = RT_BIT_64(32) - 1; /* default; checked later */
    1144     pVM->pgm.s.pGstPaePDPTR3    = NULL;
     1144    pVM->pgm.s.pGstPaePdptR3    = NULL;
    11451145#ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
    1146     pVM->pgm.s.pGstPaePDPTR0    = NIL_RTR0PTR;
     1146    pVM->pgm.s.pGstPaePdptR0    = NIL_RTR0PTR;
    11471147#endif
    1148     pVM->pgm.s.pGstPaePDPTRC    = NIL_RTRCPTR;
     1148    pVM->pgm.s.pGstPaePdptRC    = NIL_RTRCPTR;
    11491149    for (unsigned i = 0; i < RT_ELEMENTS(pVM->pgm.s.apGstPaePDsR3); i++)
    11501150    {
     
    19121912        pVM->pgm.s.apGstPaePDsRC[i] += offDelta;
    19131913    }
    1914     pVM->pgm.s.pGstPaePDPTRC += offDelta;
     1914    pVM->pgm.s.pGstPaePdptRC += offDelta;
    19151915    pVM->pgm.s.pShwPaePdptRC += offDelta;
    19161916
  • trunk/src/VBox/VMM/PGMGst.h

    r14075 r14153  
    352352        for (unsigned i = 0; i < 4; i++)
    353353        {
    354             if (    pVM->pgm.s.pGstPaePDPTR3->a[i].n.u1Present
    355                 &&  (pVM->pgm.s.pGstPaePDPTR3->a[i].u & X86_PDPE_PG_MASK) != pVM->pgm.s.aGCPhysGstPaePDsMonitored[i])
     354            if (    pVM->pgm.s.pGstPaePdptR3->a[i].n.u1Present
     355                &&  (pVM->pgm.s.pGstPaePdptR3->a[i].u & X86_PDPE_PG_MASK) != pVM->pgm.s.aGCPhysGstPaePDsMonitored[i])
    356356            {
    357357                Log(("pgmR3GstPAEWriteHandlerCR3: detected updated PDPE; [%d] = %#llx, Old GCPhys=%RGp\n",
    358                      i, pVM->pgm.s.pGstPaePDPTR3->a[i].u, pVM->pgm.s.aGCPhysGstPaePDsMonitored[i]));
     358                     i, pVM->pgm.s.pGstPaePdptR3->a[i].u, pVM->pgm.s.aGCPhysGstPaePDsMonitored[i]));
    359359                /*
    360360                 * The PD has changed.
     
    416416        unsigned i;
    417417        for (i = 0; i < 4; i++)
    418             if (pVM->pgm.s.pGstPaePDPTHC->a[i].u == (GCPhys & X86_PTE_PAE_PG_MASK))
     418            if (pVM->pgm.s.pGstPaePdptHC->a[i].u == (GCPhys & X86_PTE_PAE_PG_MASK))
    419419            {
    420420                PX86PDPAE       pPDSrc = pgmGstGetPaePD(&pVM->pgm.s, i << X86_PDPT_SHIFT);
  • trunk/src/VBox/VMM/PGMInternal.h

    r14152 r14153  
    20032003     * @{ */
    20042004    /** The guest's page directory pointer table, static GC mapping. */
    2005     RCPTRTYPE(PX86PDPT)             pGstPaePDPTRC;
     2005    RCPTRTYPE(PX86PDPT)             pGstPaePdptRC;
    20062006    /** The guest's page directory pointer table, R3 pointer. */
    2007     R3PTRTYPE(PX86PDPT)             pGstPaePDPTR3;
     2007    R3PTRTYPE(PX86PDPT)             pGstPaePdptR3;
    20082008#ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
    20092009    /** The guest's page directory pointer table, R0 pointer. */
    2010     R0PTRTYPE(PX86PDPT)             pGstPaePDPTR0;
     2010    R0PTRTYPE(PX86PDPT)             pGstPaePdptR0;
    20112011#endif
    20122012
     
    33663366    return pGuestPDPT;
    33673367#else
    3368     return pPGM->CTX_SUFF(pGstPaePDPT);
     3368    return pPGM->CTX_SUFF(pGstPaePdpt);
    33693369#endif
    33703370}
     
    33893389    return &pGuestPDPT->a[(GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE];
    33903390#else
    3391     return &pPGM->CTX_SUFF(pGstPaePDPT)->a[(GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE];
     3391    return &pPGM->CTX_SUFF(pGstPaePdpt)->a[(GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE];
    33923392#endif
    33933393}
     
    34103410    AssertReturn(pGuestPDPT, 0);
    34113411#else
    3412     PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePDPT);
     3412    PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePdpt);
    34133413#endif
    34143414    const unsigned iPdPt = (GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE;
     
    34483448    AssertReturn(pGuestPDPT, 0);
    34493449#else
    3450     PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePDPT);
     3450    PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePdpt);
    34513451#endif
    34523452    const unsigned iPdPt = (GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE;
     
    34873487    if (RT_LIKELY(pGuestPDPT))
    34883488#else
    3489     PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePDPT);
     3489    PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePdpt);
    34903490#endif
    34913491    {
     
    35313531    AssertReturn(pGuestPDPT, 0);
    35323532#else
    3533     PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePDPT);
     3533    PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePdpt);
    35343534#endif
    35353535    const unsigned iPdPt = (GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE;
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r14147 r14153  
    35773577    rc = PGMShwGetPage(pVM, (RTGCPTR)pPGM->pGuestPDRC, NULL, &HCPhysShw);
    35783578#  else
    3579     rc = PGMShwGetPage(pVM, (RTGCPTR)pPGM->pGstPaePDPTRC, NULL, &HCPhysShw);
     3579    rc = PGMShwGetPage(pVM, (RTGCPTR)pPGM->pGstPaePdptRC, NULL, &HCPhysShw);
    35803580#  endif
    35813581    AssertRCReturn(rc, 1);
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r14152 r14153  
    452452# elif PGM_GST_TYPE == PGM_TYPE_PAE
    453453            unsigned off = GCPhysCR3 & GST_CR3_PAGE_MASK & PAGE_OFFSET_MASK;
    454             pVM->pgm.s.pGstPaePDPTR3 = (R3PTRTYPE(PX86PDPT))HCPtrGuestCR3;
     454            pVM->pgm.s.pGstPaePdptR3 = (R3PTRTYPE(PX86PDPT))HCPtrGuestCR3;
    455455#  ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
    456             pVM->pgm.s.pGstPaePDPTR0 = (R0PTRTYPE(PX86PDPT))HCPtrGuestCR3;
     456            pVM->pgm.s.pGstPaePdptR0 = (R0PTRTYPE(PX86PDPT))HCPtrGuestCR3;
    457457#  endif
    458             pVM->pgm.s.pGstPaePDPTRC = (RCPTRTYPE(PX86PDPT))((RCPTRTYPE(uint8_t *))pVM->pgm.s.GCPtrCR3Mapping + off);
    459             Log(("Cached mapping %RGv\n", pVM->pgm.s.pGstPaePDPTRC));
     458            pVM->pgm.s.pGstPaePdptRC = (RCPTRTYPE(PX86PDPT))((RCPTRTYPE(uint8_t *))pVM->pgm.s.GCPtrCR3Mapping + off);
     459            Log(("Cached mapping %RGv\n", pVM->pgm.s.pGstPaePdptRC));
    460460
    461461            /*
     
    576576
    577577#elif PGM_GST_TYPE == PGM_TYPE_PAE
    578     pVM->pgm.s.pGstPaePDPTR3 = 0;
     578    pVM->pgm.s.pGstPaePdptR3 = 0;
    579579# ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
    580     pVM->pgm.s.pGstPaePDPTR0 = 0;
    581 # endif
    582     pVM->pgm.s.pGstPaePDPTRC = 0;
     580    pVM->pgm.s.pGstPaePdptR0 = 0;
     581# endif
     582    pVM->pgm.s.pGstPaePdptRC = 0;
    583583    for (unsigned i = 0; i < X86_PG_PAE_PDPE_ENTRIES; i++)
    584584    {
  • trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp

    r14151 r14153  
    401401#endif
    402402    GEN_CHECK_OFF(PGM, pGuestPDRC);
    403     GEN_CHECK_OFF(PGM, pGstPaePDPTR3);
     403    GEN_CHECK_OFF(PGM, pGstPaePdptR3);
    404404#ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
    405     GEN_CHECK_OFF(PGM, pGstPaePDPTR0);
    406 #endif
    407     GEN_CHECK_OFF(PGM, pGstPaePDPTRC);
     405    GEN_CHECK_OFF(PGM, pGstPaePdptR0);
     406#endif
     407    GEN_CHECK_OFF(PGM, pGstPaePdptRC);
    408408    GEN_CHECK_OFF(PGM, apGstPaePDsR3);
    409409#ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
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