Changeset 73268 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Jul 20, 2018 2:49:05 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123875
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r73266 r73268 593 593 PGMMODEDATASHW const g_aPgmShadowModeData[PGM_SHADOW_MODE_DATA_ARRAY_SIZE] = 594 594 { 595 { UINT8_MAX, NULL, NULL, NULL, NULL , NULL}, /* 0 */596 { UINT8_MAX, NULL, NULL, NULL, NULL , NULL}, /* PGM_TYPE_REAL */597 { UINT8_MAX, NULL, NULL, NULL, NULL , NULL}, /* PGM_TYPE_PROT */595 { UINT8_MAX, NULL, NULL, NULL, NULL }, /* 0 */ 596 { UINT8_MAX, NULL, NULL, NULL, NULL }, /* PGM_TYPE_REAL */ 597 { UINT8_MAX, NULL, NULL, NULL, NULL }, /* PGM_TYPE_PROT */ 598 598 { 599 599 PGM_TYPE_32BIT, … … 689 689 # define PGMMODEDATABTH_NULL_ENTRY() { UINT32_MAX, UINT32_MAX, NULL, NULL, NULL, NULL, NULL, NULL } 690 690 # define PGMMODEDATABTH_ENTRY(uShwT, uGstT, Nm) \ 691 { uShwT, uGstT, Nm(InvalidatePage), Nm(SyncCR3), Nm(PrefetchPage), Nm(VerifyAccessSyncPage), Nm(MapCR3), Nm(UnmapCR3), Nm(Enter), Nm(Relocate),}691 { uShwT, uGstT, Nm(InvalidatePage), Nm(SyncCR3), Nm(PrefetchPage), Nm(VerifyAccessSyncPage), Nm(MapCR3), Nm(UnmapCR3), Nm(Enter), } 692 692 693 693 #elif defined(IN_RING3) && defined(VBOX_STRICT) 694 694 # define PGMMODEDATABTH_NULL_ENTRY() { UINT32_MAX, UINT32_MAX, NULL, NULL, NULL, NULL, NULL, NULL, NULL } 695 695 # define PGMMODEDATABTH_ENTRY(uShwT, uGstT, Nm) \ 696 { uShwT, uGstT, Nm(InvalidatePage), Nm(SyncCR3), Nm(PrefetchPage), Nm(VerifyAccessSyncPage), Nm(MapCR3), Nm(UnmapCR3), Nm(Enter), Nm( Relocate), Nm(AssertCR3) }696 { uShwT, uGstT, Nm(InvalidatePage), Nm(SyncCR3), Nm(PrefetchPage), Nm(VerifyAccessSyncPage), Nm(MapCR3), Nm(UnmapCR3), Nm(Enter), Nm(AssertCR3) } 697 697 698 698 #else … … 3248 3248 AssertPtrReturn(g_aPgmBothModeData[idxNewBth].pfnUnmapCR3, VERR_PGM_MODE_IPE); 3249 3249 AssertPtrReturn(g_aPgmBothModeData[idxNewBth].pfnEnter, VERR_PGM_MODE_IPE); 3250 #ifdef IN_RING33251 AssertPtrReturn(g_aPgmBothModeData[idxNewBth].pfnRelocate, VERR_PGM_MODE_IPE);3252 #endif3253 3250 #ifdef VBOX_STRICT 3254 3251 AssertPtrReturn(g_aPgmBothModeData[idxNewBth].pfnAssertCR3, VERR_PGM_MODE_IPE); -
trunk/src/VBox/VMM/VMMAll/PGMAllGst.h
r73261 r73268 740 740 } 741 741 742 743 #ifdef IN_RING3 744 /** 745 * Relocate any GC pointers related to guest mode paging. 746 * 747 * @returns VBox status code. 748 * @param pVCpu The cross context virtual CPU structure. 749 * @param offDelta The relocation offset. 750 */ 751 PGM_GST_DECL(int, Relocate)(PVMCPU pVCpu, RTGCPTR offDelta) 752 { 753 pVCpu->pgm.s.pGst32BitPdRC += offDelta; 754 for (unsigned i = 0; i < RT_ELEMENTS(pVCpu->pgm.s.apGstPaePDsRC); i++) 755 pVCpu->pgm.s.apGstPaePDsRC[i] += offDelta; 756 pVCpu->pgm.s.pGstPaePdptRC += offDelta; 757 758 return VINF_SUCCESS; 759 } 760 #endif -
trunk/src/VBox/VMM/VMMAll/PGMAllShw.h
r73267 r73268 582 582 } 583 583 584 585 #ifdef IN_RING3 586 /** 587 * Relocate any GC pointers related to shadow mode paging. 588 * 589 * @returns VBox status code. 590 * @param pVCpu The cross context virtual CPU structure. 591 * @param offDelta The relocation offset. 592 */ 593 PGM_SHW_DECL(int, Relocate)(PVMCPU pVCpu, RTGCPTR offDelta) 594 { 595 pVCpu->pgm.s.pShwPageCR3RC += offDelta; 596 return VINF_SUCCESS; 597 } 598 #endif 599
Note:
See TracChangeset
for help on using the changeset viewer.