Changeset 54845 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Mar 19, 2015 10:55:06 AM (10 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TMAll.cpp
r54065 r54845 2576 2576 } 2577 2577 2578 2579 /** 2580 * Whether the guest virtual clock is ticking. 2581 * 2582 * @returns true if ticking, false otherwise. 2583 * @param pVM Pointer to the VM. 2584 */ 2585 VMM_INT_DECL(bool) TMVirtualIsTicking(PVM pVM) 2586 { 2587 return RT_BOOL(pVM->tm.s.cVirtualTicking); 2588 } 2589 -
trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp
r54308 r54845 543 543 } 544 544 545 546 /** 547 * Whether the TSC is ticking for the VCPU. 548 * 549 * @returns true if ticking, false otherwise. 550 * @param pVCpu Pointer to the VMCPU. 551 */ 552 VMM_INT_DECL(bool) TMCpuTickIsTicking(PVMCPU pVCpu) 553 { 554 return pVCpu->tm.s.fTSCTicking; 555 } 556 -
trunk/src/VBox/VMM/VMMR3/GIMKvm.cpp
r54839 r54845 317 317 if (MSR_GIM_KVM_SYSTEM_TIME_IS_ENABLED(pKvmCpu->u64SystemTimeMsr)) 318 318 { 319 Assert(!TMVirtualIsTicking(pVM)); /* paranoia. */ 320 Assert(!TMCpuTickIsTicking(pVCpu)); 319 321 rc = gimR3KvmEnableSystemTime(pVM, pVCpu, pKvmCpu, fSystemTimeFlags); 320 322 AssertRCReturn(rc, rc);
Note:
See TracChangeset
for help on using the changeset viewer.