VirtualBox

Changeset 72657 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jun 22, 2018 11:05:11 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123168
Message:

EM: Make the EMHistoryExec parameters adjustable. bugref:9198

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r72643 r72657  
    183183        pVM->aCpus[i].em.s.fExitOptimizationEnabledR0                = fExitOptimizationEnabledR0;
    184184        pVM->aCpus[i].em.s.fExitOptimizationEnabledR0PreemptDisabled = fExitOptimizationEnabledR0PreemptDisabled;
     185
     186        pVM->aCpus[i].em.s.cHistoryExecMaxInstructions               = 8192;
     187        pVM->aCpus[i].em.s.cHistoryProbeMinInstructions              = 48;
     188        pVM->aCpus[i].em.s.cHistoryProbeMaxInstructionsWithoutExit   = 24;
     189#ifdef RT_OS_WINDOWS
     190        if (VM_IS_NEM_ENABLED(pVM))
     191        {
     192            pVM->aCpus[i].em.s.cHistoryProbeMaxInstructionsWithoutExit = 32;
     193            pVM->aCpus[i].em.s.cHistoryProbeMinInstructions            = 64;
     194        }
     195#endif
    185196    }
    186197
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