Changeset 91692 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Oct 12, 2021 1:31:34 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147421
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp
r91688 r91692 174 174 /** Pointer to the NtDeviceIoControlFile import table entry. */ 175 175 static decltype(NtDeviceIoControlFile) **g_ppfnVidNtDeviceIoControlFile; 176 #if defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) || defined(LOG_ENABLED) 176 177 /** Info about the VidGetHvPartitionId I/O control interface. */ 177 178 static NEMWINIOCTL g_IoCtlGetHvPartitionId; 178 179 /** Info about the VidGetPartitionProperty I/O control interface. */ 179 180 static NEMWINIOCTL g_IoCtlGetPartitionProperty; 181 #endif 180 182 #if defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED) 181 183 /** Info about the VidStartVirtualProcessor I/O control interface. */ … … 241 243 * Internal Functions * 242 244 *********************************************************************************************************************************/ 245 DECLINLINE(int) nemR3NativeGCPhys2R3PtrReadOnly(PVM pVM, RTGCPHYS GCPhys, const void **ppv); 246 DECLINLINE(int) nemR3NativeGCPhys2R3PtrWriteable(PVM pVM, RTGCPHYS GCPhys, void **ppv); 243 247 244 248 /* … … 791 795 } 792 796 797 #if defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) || defined(LOG_ENABLED) 793 798 794 799 /** … … 845 850 } 846 851 852 #endif /* defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) || defined(LOG_ENABLED) */ 847 853 #if defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED) 848 854 … … 985 991 static int nemR3WinInitDiscoverIoControlProperties(PVM pVM, PRTERRINFO pErrInfo) 986 992 { 993 RT_NOREF(pVM, pErrInfo); 994 987 995 /* 988 996 * Probe the I/O control information for select VID APIs so we can use … … 990 998 * 991 999 */ 1000 #if defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) || defined(LOG_ENABLED) 992 1001 decltype(NtDeviceIoControlFile) * const pfnOrg = *g_ppfnVidNtDeviceIoControlFile; 993 1002 … … 1019 1028 g_IoCtlGetPartitionProperty.uFunction, g_IoCtlGetPartitionProperty.cbInput, g_IoCtlGetPartitionProperty.cbOutput)); 1020 1029 1030 #endif 1021 1031 int rcRet = VINF_SUCCESS; 1022 1032 #if defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED) … … 1103 1113 1104 1114 /* Done. */ 1115 #ifdef NEM_WIN_USE_HYPERCALLS_FOR_PAGES 1105 1116 pVM->nem.s.IoCtlGetHvPartitionId = g_IoCtlGetHvPartitionId; 1106 1117 pVM->nem.s.IoCtlGetPartitionProperty = g_IoCtlGetPartitionProperty; 1118 #endif 1107 1119 #ifdef NEM_WIN_WITH_RING0_RUNLOOP 1108 1120 pVM->nem.s.IoCtlStartVirtualProcessor = g_IoCtlStartVirtualProcessor;
Note:
See TracChangeset
for help on using the changeset viewer.