Changeset 91694 in vbox for trunk/src/VBox/VMM/VMMR0/NEMR0Native-win.cpp
- Timestamp:
- Oct 12, 2021 2:12:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/NEMR0Native-win.cpp
r91692 r91694 81 81 */ 82 82 static NTSTATUS (*g_pfnWinHvDepositMemory)(uintptr_t idPartition, size_t cPages, uintptr_t IdealNode, size_t *pcActuallyAdded); 83 #endif 83 84 84 85 RT_C_DECLS_BEGIN … … 92 93 decltype(WinHvGetPartitionProperty) *g_pfnWinHvGetPartitionProperty; 93 94 RT_C_DECLS_END 94 #endif95 95 96 96 /** @name VID.SYS image details. … … 158 158 VMMR0_INT_DECL(int) NEMR0Init(void) 159 159 { 160 #ifdef NEM_WIN_USE_HYPERCALLS_FOR_PAGES 160 161 return RTCritSectInit(&g_VidSysCritSect); 162 #else 163 return VINF_SUCCESS; 164 #endif 161 165 } 162 166 … … 167 171 VMMR0_INT_DECL(void) NEMR0Term(void) 168 172 { 173 #ifdef NEM_WIN_USE_HYPERCALLS_FOR_PAGES 169 174 RTCritSectDelete(&g_VidSysCritSect); 175 #endif 170 176 } 171 177 178 #ifdef NEM_WIN_USE_HYPERCALLS_FOR_PAGES 172 179 173 180 /** … … 243 250 uintptr_t const offEndNtHdrs = (uintptr_t)(pNtHdrs + 1) - (uintptr_t)pbImage; 244 251 245 # define CHECK_LOG_RET(a_Expr, a_LogRel) do { \252 # define CHECK_LOG_RET(a_Expr, a_LogRel) do { \ 246 253 if (RT_LIKELY(a_Expr)) { /* likely */ } \ 247 254 else \ … … 337 344 // return; 338 345 //} 339 # undef CHECK_LOG_RET346 # undef CHECK_LOG_RET 340 347 } 341 348 … … 379 386 LogRel(("NEMR0: Failed to find vid.sys!__ImageBase (%Rrc)\n", rc)); 380 387 } 388 389 #endif /* NEM_WIN_USE_HYPERCALLS_FOR_PAGES */ 381 390 382 391
Note:
See TracChangeset
for help on using the changeset viewer.