Changeset 51959 in vbox
- Timestamp:
- Jul 9, 2014 3:18:00 PM (10 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
-
VMMAll/TMAllCpu.cpp (modified) (3 diffs)
-
VMMR3/TM.cpp (modified) (3 diffs)
-
include/TMInternal.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp
r51852 r51959 80 80 } 81 81 82 82 83 /** 83 84 * Resumes the CPU timestamp counter ticking. … … 144 145 } 145 146 147 146 148 /** 147 149 * Pauses the CPU timestamp counter ticking. … … 172 174 return VERR_TM_TSC_ALREADY_PAUSED; 173 175 } 176 174 177 175 178 /** -
trunk/src/VBox/VMM/VMMR3/TM.cpp
r51867 r51959 1224 1224 */ 1225 1225 pVM->tm.s.cVirtualTicking = 0; 1226 pVM->tm.s.cTSCsTicking = 0;1227 1226 /* the virtual clock. */ 1228 1227 uint64_t u64Hz; … … 1266 1265 1267 1266 /* the cpu tick clock. */ 1267 pVM->tm.s.cTSCsTicking = 0; 1268 pVM->tm.s.offTSCPause = 0; 1269 pVM->tm.s.u64LastPausedTSC = 0; 1268 1270 for (VMCPUID i = 0; i < pVM->cCpus; i++) 1269 1271 { … … 1272 1274 pVCpu->tm.s.fTSCTicking = false; 1273 1275 SSMR3GetU64(pSSM, &pVCpu->tm.s.u64TSC); 1276 if (pVM->tm.s.u64LastPausedTSC < pVCpu->tm.s.u64TSC) 1277 pVM->tm.s.u64LastPausedTSC = pVCpu->tm.s.u64TSC; 1274 1278 1275 1279 if (pVM->tm.s.fTSCUseRealTSC) -
trunk/src/VBox/VMM/include/TMInternal.h
r51853 r51959 354 354 /** The ID of the virtual CPU that normally runs the timers. */ 355 355 VMCPUID idTimerCpu; 356 356 357 /** The number of CPU clock ticks per second (TMCLOCK_TSC). 357 358 * Config variable: TSCTicksPerSecond (64-bit unsigned int) 358 359 * The config variable implies fTSCVirtualized = true and fTSCUseRealTSC = false. */ 359 360 uint64_t cTSCTicksPerSecond; 361 /** The TSC difference introduced by pausing the VM. */ 362 uint64_t offTSCPause; 363 /** The TSC value when the last TSC was paused. */ 364 uint64_t u64LastPausedTSC; 365 /** CPU TSCs ticking indicator (one for each VCPU). */ 366 uint32_t volatile cTSCsTicking; 360 367 361 368 /** Virtual time ticking enabled indicator (counter for each VCPU). (TMCLOCK_VIRTUAL) */ … … 373 380 * i.e. since u64VirtualWarpDriveStart. */ 374 381 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;384 382 385 383 /** The offset of the virtual clock relative to it's timesource.
Note:
See TracChangeset
for help on using the changeset viewer.

