Changeset 15736 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Dec 23, 2008 3:55:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r15735 r15736 3400 3400 { 3401 3401 int rc; 3402 RTCCUINTREG exitReason, instrError , val;3402 RTCCUINTREG exitReason, instrError; 3403 3403 3404 3404 rc = VMXReadVMCS(VMX_VMCS32_RO_EXIT_REASON, &exitReason); … … 3414 3414 3415 3415 #ifdef VBOX_STRICT 3416 RTGDTR gdtr; 3417 PX86DESCHC pDesc; 3416 RTGDTR gdtr; 3417 PX86DESCHC pDesc; 3418 RTCCUINTREG val; 3418 3419 3419 3420 ASMGetGDTR(&gdtr); … … 3585 3586 && MSR_IA32_VMX_MISC_PREEMPT_TSC_BIT(pVM->hwaccm.s.vmx.msr.vmx_misc)) 3586 3587 { 3587 uint32_t val;3588 uint32_t uBit, val; 3588 3589 3589 3590 rc = VMXReadVMCS32(VMX_VMCS_CTRL_PIN_EXEC_CONTROLS, &val); … … 3593 3594 AssertRC(rc); 3594 3595 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); 3597 3598 VMXWriteVMCS(VMX_VMCS32_GUEST_PREEMPTION_TIMER_VALUE, val); 3598 3599 }
Note:
See TracChangeset
for help on using the changeset viewer.