- Timestamp:
- Mar 10, 2009 11:08:39 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/selm.h
r17035 r17616 56 56 VMMDECL(RTGCPTR) SELMToFlat(PVM pVM, DIS_SELREG SelReg, PCPUMCTXCORE pCtxCore, RTGCPTR Addr); 57 57 VMMDECL(RTGCPTR) SELMToFlatBySel(PVM pVM, RTSEL Sel, RTGCPTR Addr); 58 VMMDECL(void) SELMShadowCR3Changed(PVM pVM); 58 59 59 60 /** Flags for SELMToFlatEx(). … … 135 136 VMMR3DECL(int) SELMR3InitFinalize(PVM pVM); 136 137 VMMR3DECL(void) SELMR3Relocate(PVM pVM); 137 VMMR3DECL(void) SELMR3PagingModeChanged(PVM pVM);138 138 VMMR3DECL(int) SELMR3Term(PVM pVM); 139 139 VMMR3DECL(void) SELMR3Reset(PVM pVM); -
trunk/src/VBox/VMM/PGM.cpp
r17586 r17616 3477 3477 rc = VINF_SUCCESS; 3478 3478 } 3479 3480 /*3481 * Notify SELM so it can update the TSSes with correct CR3s.3482 */3483 SELMR3PagingModeChanged(pVM);3484 3479 3485 3480 /* Notify HWACCM as well. */ -
trunk/src/VBox/VMM/SELM.cpp
r17107 r17616 496 496 #endif 497 497 } 498 }499 500 501 /**502 * Notification callback which is called whenever there is a chance that a CR3503 * value might have changed.504 * This is called by PGM.505 *506 * @param pVM The VM handle507 */508 VMMR3DECL(void) SELMR3PagingModeChanged(PVM pVM)509 {510 pVM->selm.s.Tss.cr3 = PGMGetHyperCR3(pVM);511 pVM->selm.s.TssTrap08.cr3 = PGMGetInterRCCR3(pVM);512 498 } 513 499 -
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r17586 r17616 4282 4282 /* Set the current hypervisor CR3. */ 4283 4283 CPUMSetHyperCR3(pVM, PGMGetHyperCR3(pVM)); 4284 SELMShadowCR3Changed(pVM); 4284 4285 4285 4286 # ifdef IN_RC -
trunk/src/VBox/VMM/VMMAll/SELMAll.cpp
r17035 r17616 1205 1205 } 1206 1206 1207 1208 1209 /** 1210 * Notification callback which is called whenever there is a chance that a CR3 1211 * value might have changed. 1212 * This is called by PGM. 1213 * 1214 * @param pVM The VM handle 1215 */ 1216 VMMDECL(void) SELMShadowCR3Changed(PVM pVM) 1217 { 1218 pVM->selm.s.Tss.cr3 = PGMGetHyperCR3(pVM); 1219 Assert(pVM->selm.s.TssTrap08.cr3 == PGMGetInterRCCR3(pVM)); 1220 }
Note:
See TracChangeset
for help on using the changeset viewer.