Changeset 14153 in vbox
- Timestamp:
- Nov 12, 2008 11:30:34 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r14151 r14153 1142 1142 pVM->pgm.s.fA20Enabled = true; 1143 1143 pVM->pgm.s.GCPhys4MBPSEMask = RT_BIT_64(32) - 1; /* default; checked later */ 1144 pVM->pgm.s.pGstPaeP DPTR3 = NULL;1144 pVM->pgm.s.pGstPaePdptR3 = NULL; 1145 1145 #ifndef VBOX_WITH_2X_4GB_ADDR_SPACE 1146 pVM->pgm.s.pGstPaeP DPTR0 = NIL_RTR0PTR;1146 pVM->pgm.s.pGstPaePdptR0 = NIL_RTR0PTR; 1147 1147 #endif 1148 pVM->pgm.s.pGstPaeP DPTRC = NIL_RTRCPTR;1148 pVM->pgm.s.pGstPaePdptRC = NIL_RTRCPTR; 1149 1149 for (unsigned i = 0; i < RT_ELEMENTS(pVM->pgm.s.apGstPaePDsR3); i++) 1150 1150 { … … 1912 1912 pVM->pgm.s.apGstPaePDsRC[i] += offDelta; 1913 1913 } 1914 pVM->pgm.s.pGstPaeP DPTRC += offDelta;1914 pVM->pgm.s.pGstPaePdptRC += offDelta; 1915 1915 pVM->pgm.s.pShwPaePdptRC += offDelta; 1916 1916 -
trunk/src/VBox/VMM/PGMGst.h
r14075 r14153 352 352 for (unsigned i = 0; i < 4; i++) 353 353 { 354 if ( pVM->pgm.s.pGstPaeP DPTR3->a[i].n.u1Present355 && (pVM->pgm.s.pGstPaeP DPTR3->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]) 356 356 { 357 357 Log(("pgmR3GstPAEWriteHandlerCR3: detected updated PDPE; [%d] = %#llx, Old GCPhys=%RGp\n", 358 i, pVM->pgm.s.pGstPaeP DPTR3->a[i].u, pVM->pgm.s.aGCPhysGstPaePDsMonitored[i]));358 i, pVM->pgm.s.pGstPaePdptR3->a[i].u, pVM->pgm.s.aGCPhysGstPaePDsMonitored[i])); 359 359 /* 360 360 * The PD has changed. … … 416 416 unsigned i; 417 417 for (i = 0; i < 4; i++) 418 if (pVM->pgm.s.pGstPaeP DPTHC->a[i].u == (GCPhys & X86_PTE_PAE_PG_MASK))418 if (pVM->pgm.s.pGstPaePdptHC->a[i].u == (GCPhys & X86_PTE_PAE_PG_MASK)) 419 419 { 420 420 PX86PDPAE pPDSrc = pgmGstGetPaePD(&pVM->pgm.s, i << X86_PDPT_SHIFT); -
trunk/src/VBox/VMM/PGMInternal.h
r14152 r14153 2003 2003 * @{ */ 2004 2004 /** The guest's page directory pointer table, static GC mapping. */ 2005 RCPTRTYPE(PX86PDPT) pGstPaeP DPTRC;2005 RCPTRTYPE(PX86PDPT) pGstPaePdptRC; 2006 2006 /** The guest's page directory pointer table, R3 pointer. */ 2007 R3PTRTYPE(PX86PDPT) pGstPaeP DPTR3;2007 R3PTRTYPE(PX86PDPT) pGstPaePdptR3; 2008 2008 #ifndef VBOX_WITH_2X_4GB_ADDR_SPACE 2009 2009 /** The guest's page directory pointer table, R0 pointer. */ 2010 R0PTRTYPE(PX86PDPT) pGstPaeP DPTR0;2010 R0PTRTYPE(PX86PDPT) pGstPaePdptR0; 2011 2011 #endif 2012 2012 … … 3366 3366 return pGuestPDPT; 3367 3367 #else 3368 return pPGM->CTX_SUFF(pGstPaeP DPT);3368 return pPGM->CTX_SUFF(pGstPaePdpt); 3369 3369 #endif 3370 3370 } … … 3389 3389 return &pGuestPDPT->a[(GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE]; 3390 3390 #else 3391 return &pPGM->CTX_SUFF(pGstPaeP DPT)->a[(GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE];3391 return &pPGM->CTX_SUFF(pGstPaePdpt)->a[(GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE]; 3392 3392 #endif 3393 3393 } … … 3410 3410 AssertReturn(pGuestPDPT, 0); 3411 3411 #else 3412 PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaeP DPT);3412 PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePdpt); 3413 3413 #endif 3414 3414 const unsigned iPdPt = (GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE; … … 3448 3448 AssertReturn(pGuestPDPT, 0); 3449 3449 #else 3450 PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaeP DPT);3450 PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePdpt); 3451 3451 #endif 3452 3452 const unsigned iPdPt = (GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE; … … 3487 3487 if (RT_LIKELY(pGuestPDPT)) 3488 3488 #else 3489 PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaeP DPT);3489 PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePdpt); 3490 3490 #endif 3491 3491 { … … 3531 3531 AssertReturn(pGuestPDPT, 0); 3532 3532 #else 3533 PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaeP DPT);3533 PX86PDPT pGuestPDPT = pPGM->CTX_SUFF(pGstPaePdpt); 3534 3534 #endif 3535 3535 const unsigned iPdPt = (GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE; -
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r14147 r14153 3577 3577 rc = PGMShwGetPage(pVM, (RTGCPTR)pPGM->pGuestPDRC, NULL, &HCPhysShw); 3578 3578 # else 3579 rc = PGMShwGetPage(pVM, (RTGCPTR)pPGM->pGstPaeP DPTRC, NULL, &HCPhysShw);3579 rc = PGMShwGetPage(pVM, (RTGCPTR)pPGM->pGstPaePdptRC, NULL, &HCPhysShw); 3580 3580 # endif 3581 3581 AssertRCReturn(rc, 1); -
trunk/src/VBox/VMM/VMMAll/PGMAllGst.h
r14152 r14153 452 452 # elif PGM_GST_TYPE == PGM_TYPE_PAE 453 453 unsigned off = GCPhysCR3 & GST_CR3_PAGE_MASK & PAGE_OFFSET_MASK; 454 pVM->pgm.s.pGstPaeP DPTR3 = (R3PTRTYPE(PX86PDPT))HCPtrGuestCR3;454 pVM->pgm.s.pGstPaePdptR3 = (R3PTRTYPE(PX86PDPT))HCPtrGuestCR3; 455 455 # ifndef VBOX_WITH_2X_4GB_ADDR_SPACE 456 pVM->pgm.s.pGstPaeP DPTR0 = (R0PTRTYPE(PX86PDPT))HCPtrGuestCR3;456 pVM->pgm.s.pGstPaePdptR0 = (R0PTRTYPE(PX86PDPT))HCPtrGuestCR3; 457 457 # endif 458 pVM->pgm.s.pGstPaeP DPTRC = (RCPTRTYPE(PX86PDPT))((RCPTRTYPE(uint8_t *))pVM->pgm.s.GCPtrCR3Mapping + off);459 Log(("Cached mapping %RGv\n", pVM->pgm.s.pGstPaeP DPTRC));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)); 460 460 461 461 /* … … 576 576 577 577 #elif PGM_GST_TYPE == PGM_TYPE_PAE 578 pVM->pgm.s.pGstPaeP DPTR3 = 0;578 pVM->pgm.s.pGstPaePdptR3 = 0; 579 579 # ifndef VBOX_WITH_2X_4GB_ADDR_SPACE 580 pVM->pgm.s.pGstPaeP DPTR0 = 0;581 # endif 582 pVM->pgm.s.pGstPaeP DPTRC = 0;580 pVM->pgm.s.pGstPaePdptR0 = 0; 581 # endif 582 pVM->pgm.s.pGstPaePdptRC = 0; 583 583 for (unsigned i = 0; i < X86_PG_PAE_PDPE_ENTRIES; i++) 584 584 { -
trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp
r14151 r14153 401 401 #endif 402 402 GEN_CHECK_OFF(PGM, pGuestPDRC); 403 GEN_CHECK_OFF(PGM, pGstPaeP DPTR3);403 GEN_CHECK_OFF(PGM, pGstPaePdptR3); 404 404 #ifndef VBOX_WITH_2X_4GB_ADDR_SPACE 405 GEN_CHECK_OFF(PGM, pGstPaeP DPTR0);406 #endif 407 GEN_CHECK_OFF(PGM, pGstPaeP DPTRC);405 GEN_CHECK_OFF(PGM, pGstPaePdptR0); 406 #endif 407 GEN_CHECK_OFF(PGM, pGstPaePdptRC); 408 408 GEN_CHECK_OFF(PGM, apGstPaePDsR3); 409 409 #ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
Note:
See TracChangeset
for help on using the changeset viewer.