Changeset 10317 in vbox
- Timestamp:
- Jul 7, 2008 1:12:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r10287 r10317 2997 2997 PGM_BTH_DECL(int, SyncCR3)(PVM pVM, uint64_t cr0, uint64_t cr3, uint64_t cr4, bool fGlobal) 2998 2998 { 2999 #if PGM_SHW_TYPE == PGM_TYPE_NESTED3000 /** @todo check if this is really necessary */3001 HWACCMFlushTLB(pVM);3002 return VINF_SUCCESS;3003 3004 #else /* PGM_SHW_TYPE != PGM_TYPE_NESTED */3005 2999 if (VM_FF_ISSET(pVM, VM_FF_PGM_SYNC_CR3)) 3006 3000 fGlobal = true; /* Change this CR3 reload to be a global one. */ … … 3019 3013 STAM_PROFILE_STOP(&pVM->pgm.s.CTXMID(Stat,SyncCR3Handlers), h); 3020 3014 3021 # 3015 #ifdef PGMPOOL_WITH_MONITORING 3022 3016 /* 3023 3017 * When monitoring shadowed pages, we reset the modification counters on CR3 sync. … … 3030 3024 else 3031 3025 { 3032 # 3026 # ifdef IN_RING3 3033 3027 pVM->pgm.s.fSyncFlags &= ~PGM_SYNC_CLEAR_PGM_POOL; 3034 3028 pgmPoolClearAll(pVM); 3035 # 3029 # else 3036 3030 LogFlow(("SyncCR3: PGM_SYNC_CLEAR_PGM_POOL is set -> VINF_PGM_SYNC_CR3\n")); 3037 3031 return VINF_PGM_SYNC_CR3; 3038 # endif 3039 } 3040 # endif 3032 # endif 3033 } 3034 #endif 3035 3036 #if PGM_SHW_TYPE == PGM_TYPE_NESTED 3037 /** @todo check if this is really necessary */ 3038 HWACCMFlushTLB(pVM); 3039 return VINF_SUCCESS; 3040 3041 #else /* PGM_SHW_TYPE != PGM_TYPE_NESTED */ 3041 3042 3042 3043 Assert(fGlobal || (cr4 & X86_CR4_PGE));
Note:
See TracChangeset
for help on using the changeset viewer.