VirtualBox

Changeset 87559 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Feb 3, 2021 11:32:52 AM (4 years ago)
Author:
vboxsync
Message:

VMM/HMVMX: Tidied up HM::vmx and HM::svm a little. bugref:9217

File:
1 edited

Legend:

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

    r87557 r87559  
    11721172    if (pVM->hm.s.vmx.fSupported)
    11731173    {
    1174         pVM->hmr0.s.vmx.fUsePreemptTimer    = pVM->hm.s.vmx.fUsePreemptTimerCfg && g_fHmVmxUsePreemptTimer;
    1175         pVM->hm.s.vmx.fUsePreemptTimerCfg   = pVM->hmr0.s.vmx.fUsePreemptTimer;
    1176         pVM->hm.s.vmx.cPreemptTimerShift    = g_cHmVmxPreemptTimerShift;
    1177         pVM->hm.s.vmx.u64HostCr4            = g_uHmVmxHostCr4;
    1178         pVM->hm.s.vmx.u64HostMsrEfer        = g_uHmVmxHostMsrEfer;
    1179         pVM->hm.s.vmx.u64HostSmmMonitorCtl  = g_uHmVmxHostSmmMonitorCtl;
     1174        pVM->hmr0.s.vmx.fUsePreemptTimer            = pVM->hm.s.vmx.fUsePreemptTimerCfg && g_fHmVmxUsePreemptTimer;
     1175        pVM->hm.s.vmx.fUsePreemptTimerCfg           = pVM->hmr0.s.vmx.fUsePreemptTimer;
     1176        pVM->hm.s.vmx.cPreemptTimerShift            = g_cHmVmxPreemptTimerShift;
     1177        pVM->hm.s.vmx.u64HostCr4ForRing3            = g_uHmVmxHostCr4;
     1178        pVM->hm.s.vmx.u64HostMsrEferForRing3        = g_uHmVmxHostMsrEfer;
     1179        pVM->hm.s.vmx.u64HostSmmMonitorCtlForRing3  = g_uHmVmxHostSmmMonitorCtl;
    11801180        HMGetVmxMsrsFromHwvirtMsrs(&g_HmMsrs, &pVM->hm.s.vmx.MsrsForRing3);
    11811181        /* If you need to tweak host MSRs for testing VMX R0 code, do it here. */
Note: See TracChangeset for help on using the changeset viewer.

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