VirtualBox

Changeset 75661 in vbox


Ignore:
Timestamp:
Nov 22, 2018 12:33:18 PM (6 years ago)
Author:
vboxsync
Message:

VMM/GVMMR0SchedHalt: doxygen fix.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/gvmm.h

    r75646 r75661  
    172172GVMMR0DECL(PVM)     GVMMR0GetVMByEMT(RTNATIVETHREAD hEMT);
    173173GVMMR0DECL(PGVMCPU) GVMMR0GetGVCpuByEMT(RTNATIVETHREAD hEMT);
    174 GVMMR0DECL(int)     GVMMR0SchedHalt(PGVM pGVM, PVM pVM, PGVMCPU pCurGVCpu, uint64_t u64ExpireGipTime);
     174GVMMR0DECL(int)     GVMMR0SchedHalt(PGVM pGVM, PVM pVM, PGVMCPU pGVCpu, uint64_t u64ExpireGipTime);
    175175GVMMR0DECL(int)     GVMMR0SchedHaltReq(PGVM pGVM, PVM pVM, VMCPUID idCpu, uint64_t u64ExpireGipTime);
    176176GVMMR0DECL(int)     GVMMR0SchedWakeUp(PGVM pGVM, PVM pVM, VMCPUID idCpu);
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r75646 r75661  
    21572157 * @param   pGVM                The global (ring-0) VM structure.
    21582158 * @param   pVM                 The cross context VM structure.
    2159  * @param   idCpu               The Virtual CPU ID of the calling EMT.
     2159 * @param   pGVCpu              The global (ring-0) CPU structure of the calling
     2160 *                              EMT.
    21602161 * @param   u64ExpireGipTime    The time for the sleep to expire expressed as GIP time.
    2161  * @thread  EMT(idCpu).
    2162  */
    2163 GVMMR0DECL(int) GVMMR0SchedHalt(PGVM pGVM, PVM pVM, PGVMCPU pCurGVCpu, uint64_t u64ExpireGipTime)
    2164 {
    2165     LogFlow(("GVMMR0SchedHalt: pGVM=%p pVM=%p pCurGVCpu=%p(%d) u64ExpireGipTime=%#RX64\n",
    2166              pGVM, pVM, pCurGVCpu, pCurGVCpu->idCpu, u64ExpireGipTime));
     2162 * @thread  EMT(pGVCpu).
     2163 */
     2164GVMMR0DECL(int) GVMMR0SchedHalt(PGVM pGVM, PVM pVM, PGVMCPU pGVCpu, uint64_t u64ExpireGipTime)
     2165{
     2166    LogFlow(("GVMMR0SchedHalt: pGVM=%p pVM=%p pGVCpu=%p(%d) u64ExpireGipTime=%#RX64\n",
     2167             pGVM, pVM, pGVCpu, pGVCpu->idCpu, u64ExpireGipTime));
    21672168    GVMM_CHECK_SMAP_SETUP();
    21682169    GVMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
     
    21722173
    21732174    pGVM->gvmm.s.StatsSched.cHaltCalls++;
    2174     Assert(!pCurGVCpu->gvmm.s.u64HaltExpire);
     2175    Assert(!pGVCpu->gvmm.s.u64HaltExpire);
    21752176
    21762177    /*
     
    21862187    }
    21872188
    2188     pCurGVCpu->gvmm.s.iCpuEmt = ASMGetApicId();
     2189    pGVCpu->gvmm.s.iCpuEmt = ASMGetApicId();
    21892190
    21902191    /* GIP hack: We might are frequently sleeping for short intervals where the
     
    22162217        if (cNsInterval > RT_NS_1SEC)
    22172218            u64ExpireGipTime = u64NowGip + RT_NS_1SEC;
    2218         ASMAtomicWriteU64(&pCurGVCpu->gvmm.s.u64HaltExpire, u64ExpireGipTime);
     2219        ASMAtomicWriteU64(&pGVCpu->gvmm.s.u64HaltExpire, u64ExpireGipTime);
    22192220        ASMAtomicIncU32(&pGVMM->cHaltedEMTs);
    22202221        if (fDoEarlyWakeUps)
     
    22262227        GVMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
    22272228
    2228         rc = RTSemEventMultiWaitEx(pCurGVCpu->gvmm.s.HaltEventMulti,
     2229        rc = RTSemEventMultiWaitEx(pGVCpu->gvmm.s.HaltEventMulti,
    22292230                                   RTSEMWAIT_FLAGS_ABSOLUTE | RTSEMWAIT_FLAGS_NANOSECS | RTSEMWAIT_FLAGS_INTERRUPTIBLE,
    22302231                                   u64NowGip > u64NowSys ? u64ExpireGipTime : u64NowSys + cNsInterval);
    22312232        GVMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
    22322233
    2233         ASMAtomicWriteU64(&pCurGVCpu->gvmm.s.u64HaltExpire, 0);
     2234        ASMAtomicWriteU64(&pGVCpu->gvmm.s.u64HaltExpire, 0);
    22342235        ASMAtomicDecU32(&pGVMM->cHaltedEMTs);
    22352236
     
    22372238        if (rc == VINF_SUCCESS)
    22382239        {
    2239             RTSemEventMultiReset(pCurGVCpu->gvmm.s.HaltEventMulti);
     2240            RTSemEventMultiReset(pGVCpu->gvmm.s.HaltEventMulti);
    22402241            GVMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
    22412242        }
     
    22522253            GVMMR0_USED_SHARED_UNLOCK(pGVMM);
    22532254        GVMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
    2254         RTSemEventMultiReset(pCurGVCpu->gvmm.s.HaltEventMulti);
     2255        RTSemEventMultiReset(pGVCpu->gvmm.s.HaltEventMulti);
    22552256        GVMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
    22562257        rc = VINF_SUCCESS;
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