VirtualBox

Changeset 51852 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Jul 3, 2014 3:09:01 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94703
Message:

TM: Add the same TSC offset to each VCPU when pausing/resuming (not yet enabled).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/TMInternal.h

    r44528 r51852  
    373373     * i.e. since u64VirtualWarpDriveStart. */
    374374    uint32_t                    u32VirtualWarpDrivePercentage;
     375
     376    /** CPU TSCs ticking indicator (one for each VCPU). */
     377    uint32_t volatile           cTSCsTicking;
     378
     379    /** The TSC difference introduced by pausing the VM. */
     380    uint64_t                    offTSCPause;
     381
     382    /** The TSC value when the last TSC was paused. */
     383    uint64_t                    u64LastPausedTSC;
    375384
    376385    /** The offset of the virtual clock relative to it's timesource.
     
    631640    STAMCOUNTER                 StatTSCSet;
    632641
     642    /** TSC starts and stops. */
     643    STAMCOUNTER                 StatTSCPause;
     644    STAMCOUNTER                 StatTSCResume;
     645
    633646    /** @name Reasons for refusing TSC offsetting in TMCpuTickCanUseRealTSC.
    634647     * @{ */
     
    729742
    730743int                     tmCpuTickPause(PVMCPU pVCpu);
     744int                     tmCpuTickPauseLocked(PVM pVM, PVMCPU pVCpu);
    731745int                     tmCpuTickResume(PVM pVM, PVMCPU pVCpu);
     746int                     tmCpuTickResumeLocked(PVM pVM, PVMCPU pVCpu);
    732747
    733748int                     tmVirtualPauseLocked(PVM pVM);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette