VirtualBox

Changeset 15736 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 23, 2008 3:55:23 PM (16 years ago)
Author:
vboxsync
Message:

Corrected max time spent in VT-x guest mode

File:
1 edited

Legend:

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

    r15735 r15736  
    34003400    {
    34013401        int         rc;
    3402         RTCCUINTREG exitReason, instrError, val;
     3402        RTCCUINTREG exitReason, instrError;
    34033403
    34043404        rc  = VMXReadVMCS(VMX_VMCS32_RO_EXIT_REASON, &exitReason);
     
    34143414
    34153415#ifdef VBOX_STRICT
    3416             RTGDTR     gdtr;
    3417             PX86DESCHC pDesc;
     3416            RTGDTR      gdtr;
     3417            PX86DESCHC  pDesc;
     3418            RTCCUINTREG val;
    34183419
    34193420            ASMGetGDTR(&gdtr);
     
    35853586        &&  MSR_IA32_VMX_MISC_PREEMPT_TSC_BIT(pVM->hwaccm.s.vmx.msr.vmx_misc))
    35863587    {
    3587         uint32_t val;
     3588        uint32_t uBit, val;
    35883589
    35893590        rc = VMXReadVMCS32(VMX_VMCS_CTRL_PIN_EXEC_CONTROLS, &val);
     
    35933594        AssertRC(rc);
    35943595
    3595         val = MSR_IA32_VMX_MISC_PREEMPT_TSC_BIT(pVM->hwaccm.s.vmx.msr.vmx_misc);
    3596         val = 1000000 / val;
     3596        uBit = MSR_IA32_VMX_MISC_PREEMPT_TSC_BIT(pVM->hwaccm.s.vmx.msr.vmx_misc);
     3597        val = 1000000 / RT_BIT(uBit);
    35973598        VMXWriteVMCS(VMX_VMCS32_GUEST_PREEMPTION_TIMER_VALUE, val);
    35983599    }
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