VirtualBox

Changeset 34187 in vbox


Ignore:
Timestamp:
Nov 18, 2010 9:26:02 PM (14 years ago)
Author:
vboxsync
Message:

HWACCM.cpp: Added CFGM value /HWACCM/UsePreemptTimer <bool> for overriding fUsePreemptTimer. Added LogRel when fUsePreemptTimer is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r33540 r34187  
    10491049
    10501050            LogRel(("HWACCM: MSR_IA32_VMX_MISC             = %RX64\n", pVM->hwaccm.s.vmx.msr.vmx_misc));
    1051             if (   !pVM->hwaccm.s.vmx.fUsePreemptTimer
    1052                 || MSR_IA32_VMX_MISC_PREEMPT_TSC_BIT(pVM->hwaccm.s.vmx.msr.vmx_misc) == pVM->hwaccm.s.vmx.cPreemptTimerShift)
     1051            if (MSR_IA32_VMX_MISC_PREEMPT_TSC_BIT(pVM->hwaccm.s.vmx.msr.vmx_misc) == pVM->hwaccm.s.vmx.cPreemptTimerShift)
    10531052                LogRel(("HWACCM:    MSR_IA32_VMX_MISC_PREEMPT_TSC_BIT %x\n", MSR_IA32_VMX_MISC_PREEMPT_TSC_BIT(pVM->hwaccm.s.vmx.msr.vmx_misc)));
    10541053            else
     
    12231222                }
    12241223                LogRel(("HWACCM: TPR Patching %s.\n", (pVM->hwaccm.s.fTRPPatchingAllowed) ? "enabled" : "disabled"));
     1224
     1225                /*
     1226                 * Check for preemption timer config override and log the state of it.
     1227                 */
     1228                if (pVM->hwaccm.s.vmx.fUsePreemptTimer)
     1229                {
     1230                    PCFGMNODE pCfgHwAccM = CFGMR3GetChild(CFGMR3GetRoot(pVM), "HWACCM");
     1231                    int rc2 = CFGMR3QueryBoolDef(pCfgHwAccM, "UsePreemptTimer", &pVM->hwaccm.s.vmx.fUsePreemptTimer, true);
     1232                    AssertLogRelRC(rc2);
     1233                }
     1234                if (pVM->hwaccm.s.vmx.fUsePreemptTimer)
     1235                    LogRel(("HWACCM: Using the VMX-preemption timer (cPreemptTimerShift=%u)\n", pVM->hwaccm.s.vmx.cPreemptTimerShift));
    12251236            }
    12261237            else
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