Changeset 87625 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Feb 5, 2021 12:58:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r87606 r87625 5117 5117 * For nested-guests, currently not exposed/used. 5118 5118 */ 5119 /** @todo r=bird: Measure performance hit because of this vs. always rewriting 5120 * the timer value. */ 5119 5121 if (pVM->hmr0.s.vmx.fUsePreemptTimer) 5120 5122 { … … 7129 7131 /* Make sure the returned values have sane upper and lower boundaries. */ 7130 7132 uint64_t u64CpuHz = SUPGetCpuHzFromGipBySetIndex(g_pSUPGlobalInfoPage, pVCpu->iHostCpuSet); 7131 cTicksToDeadline = RT_MIN(cTicksToDeadline, u64CpuHz / 64); /* 1/64th of a second */ 7133 cTicksToDeadline = RT_MIN(cTicksToDeadline, u64CpuHz / 64); /* 1/64th of a second */ /** @todo r=bird: Once real+virtual timers move to separate thread, we can raise the upper limit (16ms isn't much). ASSUMES working poke cpu function. */ 7132 7134 cTicksToDeadline = RT_MAX(cTicksToDeadline, u64CpuHz / 2048); /* 1/2048th of a second */ 7133 7135 cTicksToDeadline >>= pVM->hm.s.vmx.cPreemptTimerShift;
Note:
See TracChangeset
for help on using the changeset viewer.