Changeset 67136 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- May 30, 2017 7:58:21 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115808
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp
r66581 r67136 199 199 { "SUPR0SuspendVTxOnCpu", (void *)(uintptr_t)SUPR0SuspendVTxOnCpu }, 200 200 { "SUPR0ResumeVTxOnCpu", (void *)(uintptr_t)SUPR0ResumeVTxOnCpu }, 201 { "SUPR0GetCurrentGdtRw", (void *)(uintptr_t)SUPR0GetCurrentGdtRw }, 201 202 { "SUPR0GetKernelFeatures", (void *)(uintptr_t)SUPR0GetKernelFeatures }, 202 203 { "SUPR0GetPagingMode", (void *)(uintptr_t)SUPR0GetPagingMode }, … … 3877 3878 3878 3879 3880 SUPR0DECL(int) SUPR0GetCurrentGdtRw(RTHCUINTPTR *pGdtRw) 3881 { 3882 #ifdef RT_OS_LINUX 3883 return supdrvOSetCurrentGdtRw(pGdtRw); 3884 #else 3885 return VERR_NOT_IMPLEMENTED; 3886 #endif 3887 } 3888 3889 3879 3890 /** 3880 3891 * Checks if Intel VT-x feature is usable on this CPU. -
trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h
r64872 r67136 842 842 bool VBOXCALL supdrvOSSuspendVTxOnCpu(void); 843 843 void VBOXCALL supdrvOSResumeVTxOnCpu(bool fSuspended); 844 int VBOXCALL supdrvOSetCurrentGdtRw(RTHCUINTPTR *pGdtRw); 844 845 845 846 /** -
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r62694 r67136 61 61 # include <asm/msr.h> 62 62 #endif 63 64 #include <asm/desc.h> 63 65 64 66 #include <iprt/asm-amd64-x86.h> … … 1401 1403 fFlags |= SUPKERNELFEATURES_GDT_READ_ONLY; 1402 1404 #endif 1405 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) 1406 fFlags |= SUPKERNELFEATURES_GDT_NEED_WRITABLE; 1407 #endif 1403 1408 #if defined(VBOX_STRICT) || defined(VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV) 1404 1409 fFlags |= SUPKERNELFEATURES_SMAP; … … 1411 1416 1412 1417 1418 int supdrvOSetCurrentGdtRw(RTHCUINTPTR *pGdtRw) 1419 { 1420 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) 1421 *pGdtRw = (RTHCUINTPTR)get_current_gdt_rw(); 1422 return VINF_SUCCESS; 1423 #else 1424 return VERR_NOT_IMPLEMENTED; 1425 #endif 1426 } 1427 1428 1413 1429 module_init(VBoxDrvLinuxInit); 1414 1430 module_exit(VBoxDrvLinuxUnload);
Note:
See TracChangeset
for help on using the changeset viewer.