VirtualBox

Changeset 67990 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jul 17, 2017 12:18:55 PM (7 years ago)
Author:
vboxsync
Message:

GVMMR0Sched*: pass pGVM along when we've got it - part #2.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r67989 r67990  
    25002500 * @returns VBox status code, no informational stuff.
    25012501 *
     2502 * @param   pGVM                The global (ring-0) VM structure.
    25022503 * @param   pVM                 The cross context VM structure.
    25032504 * @param   pSleepSet           The set of sleepers to wake up.
    25042505 * @param   pPokeSet            The set of CPUs to poke.
    25052506 */
    2506 GVMMR0DECL(int) GVMMR0SchedWakeUpAndPokeCpus(PVM pVM, PCVMCPUSET pSleepSet, PCVMCPUSET pPokeSet)
     2507GVMMR0DECL(int) GVMMR0SchedWakeUpAndPokeCpus(PGVM pGVM, PVM pVM, PCVMCPUSET pSleepSet, PCVMCPUSET pPokeSet)
    25072508{
    25082509    AssertPtrReturn(pSleepSet, VERR_INVALID_POINTER);
     
    25152516     * Validate input and take the UsedLock.
    25162517     */
    2517     PGVM pGVM;
    25182518    PGVMM pGVMM;
    2519     int rc = gvmmR0ByVM(pVM, &pGVM, &pGVMM, true /* fTakeUsedLock */);
     2519    int rc = gvmmR0ByGVMandVM(pGVM, pVM, &pGVMM, true /* fTakeUsedLock */);
    25202520    GVMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
    25212521    if (RT_SUCCESS(rc))
     
    25562556 *
    25572557 * @returns see GVMMR0SchedWakeUpAndPokeCpus.
     2558 * @param   pGVM            The global (ring-0) VM structure.
    25582559 * @param   pVM             The cross context VM structure.
    25592560 * @param   pReq            Pointer to the request packet.
    25602561 */
    2561 GVMMR0DECL(int) GVMMR0SchedWakeUpAndPokeCpusReq(PVM pVM, PGVMMSCHEDWAKEUPANDPOKECPUSREQ pReq)
     2562GVMMR0DECL(int) GVMMR0SchedWakeUpAndPokeCpusReq(PGVM pGVM, PVM pVM, PGVMMSCHEDWAKEUPANDPOKECPUSREQ pReq)
    25622563{
    25632564    /*
     
    25672568    AssertMsgReturn(pReq->Hdr.cbReq == sizeof(*pReq), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER);
    25682569
    2569     return GVMMR0SchedWakeUpAndPokeCpus(pVM, &pReq->SleepSet, &pReq->PokeSet);
     2570    return GVMMR0SchedWakeUpAndPokeCpus(pGVM, pVM, &pReq->SleepSet, &pReq->PokeSet);
    25702571}
    25712572
     
    25802581 * @returns VINF_SUCCESS if not yielded.
    25812582 *          VINF_GVM_YIELDED if an attempt to switch to a different VM task was made.
     2583 * @param   pGVM            The global (ring-0) VM structure.
    25822584 * @param   pVM             The cross context VM structure.
    25832585 * @param   idCpu           The Virtual CPU ID of the calling EMT.
     
    25862588 * @thread  EMT(idCpu).
    25872589 */
    2588 GVMMR0DECL(int) GVMMR0SchedPoll(PVM pVM, VMCPUID idCpu, bool fYield)
     2590GVMMR0DECL(int) GVMMR0SchedPoll(PGVM pGVM, PVM pVM, VMCPUID idCpu, bool fYield)
    25892591{
    25902592    /*
    25912593     * Validate input.
    25922594     */
    2593     PGVM pGVM;
    25942595    PGVMM pGVMM;
    2595     int rc = gvmmR0ByVMAndEMT(pVM, idCpu, &pGVM, &pGVMM);
     2596    int rc = gvmmR0ByGVMandVMandEMT(pGVM, pVM, idCpu, &pGVMM);
    25962597    if (RT_SUCCESS(rc))
    25972598    {
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r67989 r67990  
    14781478            if (u64Arg)
    14791479                return VERR_INVALID_PARAMETER;
    1480             rc = GVMMR0SchedWakeUpAndPokeCpusReq(pVM, (PGVMMSCHEDWAKEUPANDPOKECPUSREQ)pReqHdr);
     1480            rc = GVMMR0SchedWakeUpAndPokeCpusReq(pGVM, pVM, (PGVMMSCHEDWAKEUPANDPOKECPUSREQ)pReqHdr);
    14811481            VMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
    14821482            break;
     
    14851485            if (pReqHdr || u64Arg > 1)
    14861486                return VERR_INVALID_PARAMETER;
    1487             rc = GVMMR0SchedPoll(pVM, idCpu, !!u64Arg);
     1487            rc = GVMMR0SchedPoll(pGVM, pVM, idCpu, !!u64Arg);
    14881488            VMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
    14891489            break;
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