Lines Matching refs:pVCpu

184 static DECLCALLBACK(VBOXSTRICTRC) tmR3CpuTickParavirtDisable(PVM pVM, PVMCPU pVCpu, void *pvData);
1216 PVMCPU pVCpu = &pVM->aCpus[i];
1217 Assert(!pVCpu->tm.s.fTSCTicking);
1244 PVMCPU pVCpu = &pVM->aCpus[i];
1245 SSMR3PutU64(pSSM, TMCpuTickGet(pVCpu));
1268 PVMCPU pVCpu = &pVM->aCpus[i];
1269 Assert(!pVCpu->tm.s.fTSCTicking);
1335 PVMCPU pVCpu = &pVM->aCpus[i];
1337 pVCpu->tm.s.fTSCTicking = false;
1338 SSMR3GetU64(pSSM, &pVCpu->tm.s.u64TSC);
1339 if (pVM->tm.s.u64LastPausedTSC < pVCpu->tm.s.u64TSC)
1340 pVM->tm.s.u64LastPausedTSC = pVCpu->tm.s.u64TSC;
1343 pVCpu->tm.s.offTSCRawSrc = 0; /** @todo TSC restore stuff and HWACC. */
2473 * @param pVCpu The virtual CPU we're running at.
2477 VMMR3_INT_DECL(void) TMR3VirtualSyncFF(PVM pVM, PVMCPU pVCpu)
2484 if (pVCpu->idCpu == pVM->tm.s.idTimerCpu)
2736 * @param pVCpu Pointer to the VMCPU.
2739 VMMR3DECL(int) TMR3NotifySuspend(PVM pVM, PVMCPU pVCpu)
2741 VMCPU_ASSERT_EMT(pVCpu);
2759 rc = tmCpuTickPauseLocked(pVM, pVCpu);
2769 uint32_t uGen = ASMAtomicIncU32(&pVCpu->tm.s.uTimesGen); Assert(uGen & 1);
2770 pVCpu->tm.s.cNsTotal = RTTimeNanoTS() - pVCpu->tm.s.u64NsTsStartTotal;
2771 pVCpu->tm.s.cNsOther = pVCpu->tm.s.cNsTotal - pVCpu->tm.s.cNsExecuting - pVCpu->tm.s.cNsHalted;
2772 ASMAtomicWriteU32(&pVCpu->tm.s.uTimesGen, (uGen | 1) + 1);
2784 * @param pVCpu Pointer to the VMCPU.
2787 VMMR3DECL(int) TMR3NotifyResume(PVM pVM, PVMCPU pVCpu)
2789 VMCPU_ASSERT_EMT(pVCpu);
2797 pVCpu->tm.s.u64NsTsStartTotal = RTTimeNanoTS() - pVCpu->tm.s.cNsTotal;
2808 rc = tmCpuTickResumeLocked(pVM, pVCpu);
2850 PVMCPU pVCpu = VMMGetCpu(pVM);
2869 TMR3NotifySuspend(pVM, pVCpu);
2878 TMR3NotifyResume(pVM, pVCpu);
2934 PVMCPU pVCpu = &pVM->aCpus[idCpu];
2935 uint32_t uTimesGen = ASMAtomicReadU32(&pVCpu->tm.s.uTimesGen);
2936 uint64_t cNsTotal = pVCpu->tm.s.cNsTotal;
2937 uint64_t cNsExecuting = pVCpu->tm.s.cNsExecuting;
2938 uint64_t cNsHalted = pVCpu->tm.s.cNsHalted;
2939 uint64_t cNsOther = pVCpu->tm.s.cNsOther;
2941 || uTimesGen != ASMAtomicReadU32(&pVCpu->tm.s.uTimesGen))
2944 uTimesGen = ASMAtomicReadU32(&pVCpu->tm.s.uTimesGen);
2945 cNsTotal = pVCpu->tm.s.cNsTotal;
2946 cNsExecuting = pVCpu->tm.s.cNsExecuting;
2947 cNsHalted = pVCpu->tm.s.cNsHalted;
2948 cNsOther = pVCpu->tm.s.cNsOther;
3042 PVMCPU pVCpu = &pVM->aCpus[iCpu];
3046 uint32_t uTimesGen = ASMAtomicReadU32(&pVCpu->tm.s.uTimesGen);
3047 uint64_t cNsTotal = pVCpu->tm.s.cNsTotal;
3048 uint64_t cNsExecuting = pVCpu->tm.s.cNsExecuting;
3049 uint64_t cNsHalted = pVCpu->tm.s.cNsHalted;
3051 || uTimesGen != ASMAtomicReadU32(&pVCpu->tm.s.uTimesGen)))
3056 uTimesGen = ASMAtomicReadU32(&pVCpu->tm.s.uTimesGen);
3057 cNsTotal = pVCpu->tm.s.cNsTotal;
3058 cNsExecuting = pVCpu->tm.s.cNsExecuting;
3059 cNsHalted = pVCpu->tm.s.cNsHalted;
3068 tmR3CpuLoadTimerMakeUpdate(&pVCpu->tm.s.CpuLoad, cNsTotal, cNsExecuting, cNsHalted);
3113 PVMCPU pVCpu = &pVM->aCpus[i];
3114 uint64_t uOldTsc = uRawOldTsc - pVCpu->tm.s.offTSCRawSrc;
3115 pVCpu->tm.s.offTSCRawSrc = uRawNewTsc - uOldTsc;
3116 Assert(uRawNewTsc - pVCpu->tm.s.offTSCRawSrc >= uOldTsc); /* paranoia^256 */
3167 PVMCPU pVCpu = &pVM->aCpus[i];
3168 uint64_t uOldTsc = uRawOldTsc - pVCpu->tm.s.offTSCRawSrc;
3169 pVCpu->tm.s.offTSCRawSrc = uRawNewTsc - uOldTsc;
3170 Assert(uRawNewTsc - pVCpu->tm.s.offTSCRawSrc >= uOldTsc); /* paranoia^256 */
3174 pVCpu->tm.s.u64TSCLastSeen = uOldTsc;
3350 PVMCPU pVCpu = &pVM->aCpus[i];
3351 uint64_t u64TSC = TMCpuTickGet(pVCpu);
3359 pVCpu->tm.s.fTSCTicking ? "ticking" : "paused");
3363 if (pVCpu->tm.s.offTSCRawSrc)
3364 pHlp->pfnPrintf(pHlp, "\n offset %RU64", pVCpu->tm.s.offTSCRawSrc);