Changeset 35023 in vbox
- Timestamp:
- Dec 13, 2010 3:25:51 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68851
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r35005 r35023 21 21 *******************************************************************************/ 22 22 #define LOG_GROUP LOG_GROUP_HWACCM 23 #include <iprt/asm-amd64-x86.h> 23 24 #include <VBox/hwaccm.h> 24 25 #include <VBox/pgm.h> … … 34 35 #include <VBox/err.h> 35 36 #include <VBox/log.h> 36 #include <iprt/asm-amd64-x86.h>37 37 #include <iprt/assert.h> 38 38 #include <iprt/param.h> … … 1901 1901 { 1902 1902 uint64_t cTicksToDeadline = TMCpuTickGetDeadlineAndTscOffset(pVCpu, &fOffsettedTsc, &pVCpu->hwaccm.s.vmx.u64TSCOffset); 1903 1904 /* Make sure the returned values have sane upper and lower boundaries. */ 1905 uint64_t u64CpuHz = SUPGetCpuHzFromGIP(g_pSUPGlobalInfoPage); 1906 1907 cTicksToDeadline = RT_MIN(cTicksToDeadline, u64CpuHz / 64); /* 1/64 of a second */ 1908 cTicksToDeadline = RT_MAX(cTicksToDeadline, u64CpuHz / 2048); /* 1/2048th of a second */ 1909 1903 1910 cTicksToDeadline >>= pVM->hwaccm.s.vmx.cPreemptTimerShift; 1904 1911 uint32_t cPreemptionTickCount = (uint32_t)RT_MIN(cTicksToDeadline, UINT32_MAX - 16);
Note:
See TracChangeset
for help on using the changeset viewer.