Changeset 1859 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Apr 2, 2007 2:08:55 PM (18 years ago)
- Location:
- trunk/src/VBox/VMM/PATM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/CSAM.cpp
r1833 r1859 63 63 /* Enable to monitor all scanned pages 64 64 #define CSAM_MONITOR_CSAM_CODE_PAGES */ 65 /* Enable to scan beyond ret instructions. 66 #define CSAM_ANALYSE_BEYOND_RET */ 65 67 66 68 /******************************************************************************* … … 958 960 { 959 961 case OP_NOP: 962 case OP_INT3: 960 963 break; /* acceptable */ 961 964 … … 2090 2093 CSAMP2GLOOKUPREC cacheRec = {0}; 2091 2094 2095 if ((pInstrGC >> 24) == 0xf8 2096 && (pInstrGC & 0xfff) == 0) _asm int 3; 2097 2092 2098 STAM_PROFILE_START(&pVM->csam.s.StatTime, a); 2093 2099 rc = csamAnalyseCallCodeStream(pVM, pInstrGC, pInstrGC, true /* 32 bits code */, CSAMR3AnalyseCallback, pPage, &cacheRec); … … 2165 2171 2166 2172 Log(("csamR3FlushCodePages: %VGv\n", GCPtr)); 2173 PGMShwSetPage(pVM, GCPtr, 1, 0); 2167 2174 /* Resync the page to make sure instruction fetch will fault */ 2168 2175 CSAMMarkPage(pVM, GCPtr, false); 2169 PGMInvalidatePage(pVM, GCPtr);2170 PGMPrefetchPage(pVM, GCPtr);2171 2172 CSAMMarkPage(pVM, GCPtr, true);2176 // PGMInvalidatePage(pVM, GCPtr); 2177 ///// PGMPrefetchPage(pVM, GCPtr); 2178 2179 ///// CSAMMarkPage(pVM, GCPtr, true); 2173 2180 } 2174 2181 pVM->csam.s.cPossibleCodePages = 0; -
trunk/src/VBox/VMM/PATM/CSAMInternal.h
r1837 r1859 186 186 /* Set when the IDT gates have been checked for the first time. */ 187 187 bool fGatesChecked; 188 bool Alignment1[HC_ARCH_BITS == 32 ? 4 : 6]; /**< Align the stats on an 8-byte boundrary. */ 188 bool Alignment1[2]; 189 // bool Alignment1[HC_ARCH_BITS == 32 ? 4 : 6]; /**< Align the stats on an 8-byte boundrary. */ 189 190 190 191 STAMCOUNTER StatNrTraps;
Note:
See TracChangeset
for help on using the changeset viewer.