Changeset 20409 in vbox for trunk/src/VBox/VMM/VMMAll/REMAll.cpp
- Timestamp:
- Jun 8, 2009 1:57:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/REMAll.cpp
r20406 r20409 26 26 #define LOG_GROUP LOG_GROUP_REM 27 27 #include <VBox/rem.h> 28 #include <VBox/em.h> 28 29 #include <VBox/vmm.h> 29 30 #include "REMInternal.h" … … 46 47 VMMDECL(int) REMNotifyInvalidatePage(PVM pVM, RTGCPTR GCPtrPage) 47 48 { 48 if (pVM->rem.s.cInvalidatedPages < RT_ELEMENTS(pVM->rem.s.aGCPtrInvalidatedPages)) 49 if ( EMTryEnterRemLock(pVM) == VINF_SUCCESS /* if this fails, then we'll just flush the tlb as we don't want to waste time here. */ 50 && pVM->rem.s.cInvalidatedPages < RT_ELEMENTS(pVM->rem.s.aGCPtrInvalidatedPages)) 49 51 { 50 52 /* … … 52 54 */ 53 55 pVM->rem.s.aGCPtrInvalidatedPages[pVM->rem.s.cInvalidatedPages++] = GCPtrPage; 56 EMRemUnlock(pVM); 54 57 } 55 58 else
Note:
See TracChangeset
for help on using the changeset viewer.