VirtualBox

Changeset 87939 in vbox


Ignore:
Timestamp:
Mar 3, 2021 1:50:41 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143034
Message:

VMM/HMVMX: Increase the lower preemption timer limit to 32768Hz. Windows like using RTC at 2048Hz for 2048Hz to be a healthy one. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r87933 r87939  
    71657165        /* Make sure the returned values have sane upper and lower boundaries. */
    71667166        uint64_t const u64CpuHz = SUPGetCpuHzFromGipBySetIndex(g_pSUPGlobalInfoPage, pVCpu->iHostCpuSet);
    7167         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. */
    7168         cTicksToDeadline   = RT_MAX(cTicksToDeadline, u64CpuHz / 2048);    /* 1/2048th of a second */
     7167        cTicksToDeadline   = RT_MIN(cTicksToDeadline, u64CpuHz / 64);      /* 1/64th of a second,  15.625ms. */ /** @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. */
     7168        cTicksToDeadline   = RT_MAX(cTicksToDeadline, u64CpuHz / 32678);   /* 1/32768th of a second,  ~30us. */
    71697169        cTicksToDeadline >>= pVM->hm.s.vmx.cPreemptTimerShift;
    71707170
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette