VirtualBox

Changeset 54845 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Mar 19, 2015 10:55:06 AM (10 years ago)
Author:
vboxsync
Message:

VMM/GIM,TM: paranoia assertions.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r54065 r54845  
    25762576}
    25772577
     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 */
     2585VMM_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  
    543543}
    544544
     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 */
     552VMM_INT_DECL(bool) TMCpuTickIsTicking(PVMCPU pVCpu)
     553{
     554    return pVCpu->tm.s.fTSCTicking;
     555}
     556
  • trunk/src/VBox/VMM/VMMR3/GIMKvm.cpp

    r54839 r54845  
    317317        if (MSR_GIM_KVM_SYSTEM_TIME_IS_ENABLED(pKvmCpu->u64SystemTimeMsr))
    318318        {
     319            Assert(!TMVirtualIsTicking(pVM));       /* paranoia. */
     320            Assert(!TMCpuTickIsTicking(pVCpu));
    319321            rc = gimR3KvmEnableSystemTime(pVM, pVCpu, pKvmCpu, fSystemTimeFlags);
    320322            AssertRCReturn(rc, rc);
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