Changeset 91958 in vbox
- Timestamp:
- Oct 21, 2021 2:34:49 PM (3 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h
r91848 r91958 1808 1808 LogRel(("nemHCWinHandleMemoryAccessPageCheckerCallback/unmap: GCPhysDst=%RGp rc=%Rrc\n", GCPhys, rc)); 1809 1809 return rc; 1810 # elif defined(VBOX_WITH_PGM_NEM_MODE) 1811 LogRel(("nemHCWinHandleMemoryAccessPageCheckerCallback/unmap: GCPhysDst=%RGp %s hrc=%Rhrc (%#x)\n", 1812 GCPhys, g_apszPageStates[u2State], hrc, hrc)); 1813 return VERR_NEM_UNMAP_PAGES_FAILED; 1810 1814 # else 1811 1815 LogRel(("nemHCWinHandleMemoryAccessPageCheckerCallback/unmap: GCPhysDst=%RGp %s hrc=%Rhrc (%#x) Last=%#x/%u (cMappedPages=%u)\n", … … 4209 4213 for (unsigned iLoop = 0;; iLoop++) 4210 4214 { 4211 # if ndef NEM_WIN_USE_HYPERCALLS_FOR_PAGES4215 # if !defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) && !defined(VBOX_WITH_PGM_NEM_MODE) 4212 4216 /* 4213 4217 * Hack alert! -
trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp
r91848 r91958 1364 1364 STAMR3Register(pVM, (void *)&pVM->nem.s.StatRemapPage, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, 1365 1365 "/NEM/PagesRemapFails", STAMUNIT_PAGES, "Calls to HvCallMapGpaPages for changing page protection failed"); 1366 #el se1366 #elif !defined(VBOX_WITH_PGM_NEM_MODE) 1367 1367 STAMR3Register(pVM, (void *)&pVM->nem.s.StatUnmapAllPages, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, 1368 1368 "/NEM/PagesUnmapAll", STAMUNIT_PAGES, "Times we had to unmap all the pages"); -
trunk/src/VBox/VMM/include/NEMInternal.h
r91848 r91958 51 51 * Windows: Code configuration. 52 52 */ 53 # define NEM_WIN_USE_HYPERCALLS_FOR_PAGES 53 # ifndef VBOX_WITH_PGM_NEM_MODE 54 # define NEM_WIN_USE_HYPERCALLS_FOR_PAGES 55 #endif 54 56 //# define NEM_WIN_USE_HYPERCALLS_FOR_REGISTERS /**< Applies to ring-3 code only. Useful for testing VID API. */ 55 57 //# define NEM_WIN_USE_OUR_OWN_RUN_API /**< Applies to ring-3 code only. Useful for testing VID API. */ … … 208 210 STAMCOUNTER StatRemapPage; 209 211 STAMCOUNTER StatRemapPageFailed; 210 # el se212 # elif !defined(VBOX_WITH_PGM_NEM_MODE) 211 213 STAMCOUNTER StatUnmapAllPages; 212 214 # endif
Note:
See TracChangeset
for help on using the changeset viewer.