Changeset 67990 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Jul 17, 2017 12:18:55 PM (7 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp
r67989 r67990 2500 2500 * @returns VBox status code, no informational stuff. 2501 2501 * 2502 * @param pGVM The global (ring-0) VM structure. 2502 2503 * @param pVM The cross context VM structure. 2503 2504 * @param pSleepSet The set of sleepers to wake up. 2504 2505 * @param pPokeSet The set of CPUs to poke. 2505 2506 */ 2506 GVMMR0DECL(int) GVMMR0SchedWakeUpAndPokeCpus(P VM pVM, PCVMCPUSET pSleepSet, PCVMCPUSET pPokeSet)2507 GVMMR0DECL(int) GVMMR0SchedWakeUpAndPokeCpus(PGVM pGVM, PVM pVM, PCVMCPUSET pSleepSet, PCVMCPUSET pPokeSet) 2507 2508 { 2508 2509 AssertPtrReturn(pSleepSet, VERR_INVALID_POINTER); … … 2515 2516 * Validate input and take the UsedLock. 2516 2517 */ 2517 PGVM pGVM;2518 2518 PGVMM pGVMM; 2519 int rc = gvmmR0By VM(pVM, &pGVM, &pGVMM, true /* fTakeUsedLock */);2519 int rc = gvmmR0ByGVMandVM(pGVM, pVM, &pGVMM, true /* fTakeUsedLock */); 2520 2520 GVMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING); 2521 2521 if (RT_SUCCESS(rc)) … … 2556 2556 * 2557 2557 * @returns see GVMMR0SchedWakeUpAndPokeCpus. 2558 * @param pGVM The global (ring-0) VM structure. 2558 2559 * @param pVM The cross context VM structure. 2559 2560 * @param pReq Pointer to the request packet. 2560 2561 */ 2561 GVMMR0DECL(int) GVMMR0SchedWakeUpAndPokeCpusReq(P VM pVM, PGVMMSCHEDWAKEUPANDPOKECPUSREQ pReq)2562 GVMMR0DECL(int) GVMMR0SchedWakeUpAndPokeCpusReq(PGVM pGVM, PVM pVM, PGVMMSCHEDWAKEUPANDPOKECPUSREQ pReq) 2562 2563 { 2563 2564 /* … … 2567 2568 AssertMsgReturn(pReq->Hdr.cbReq == sizeof(*pReq), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER); 2568 2569 2569 return GVMMR0SchedWakeUpAndPokeCpus(p VM, &pReq->SleepSet, &pReq->PokeSet);2570 return GVMMR0SchedWakeUpAndPokeCpus(pGVM, pVM, &pReq->SleepSet, &pReq->PokeSet); 2570 2571 } 2571 2572 … … 2580 2581 * @returns VINF_SUCCESS if not yielded. 2581 2582 * VINF_GVM_YIELDED if an attempt to switch to a different VM task was made. 2583 * @param pGVM The global (ring-0) VM structure. 2582 2584 * @param pVM The cross context VM structure. 2583 2585 * @param idCpu The Virtual CPU ID of the calling EMT. … … 2586 2588 * @thread EMT(idCpu). 2587 2589 */ 2588 GVMMR0DECL(int) GVMMR0SchedPoll(P VM pVM, VMCPUID idCpu, bool fYield)2590 GVMMR0DECL(int) GVMMR0SchedPoll(PGVM pGVM, PVM pVM, VMCPUID idCpu, bool fYield) 2589 2591 { 2590 2592 /* 2591 2593 * Validate input. 2592 2594 */ 2593 PGVM pGVM;2594 2595 PGVMM pGVMM; 2595 int rc = gvmmR0By VMAndEMT(pVM, idCpu, &pGVM, &pGVMM);2596 int rc = gvmmR0ByGVMandVMandEMT(pGVM, pVM, idCpu, &pGVMM); 2596 2597 if (RT_SUCCESS(rc)) 2597 2598 { -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r67989 r67990 1478 1478 if (u64Arg) 1479 1479 return VERR_INVALID_PARAMETER; 1480 rc = GVMMR0SchedWakeUpAndPokeCpusReq(p VM, (PGVMMSCHEDWAKEUPANDPOKECPUSREQ)pReqHdr);1480 rc = GVMMR0SchedWakeUpAndPokeCpusReq(pGVM, pVM, (PGVMMSCHEDWAKEUPANDPOKECPUSREQ)pReqHdr); 1481 1481 VMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING); 1482 1482 break; … … 1485 1485 if (pReqHdr || u64Arg > 1) 1486 1486 return VERR_INVALID_PARAMETER; 1487 rc = GVMMR0SchedPoll(p VM, idCpu, !!u64Arg);1487 rc = GVMMR0SchedPoll(pGVM, pVM, idCpu, !!u64Arg); 1488 1488 VMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING); 1489 1489 break;
Note:
See TracChangeset
for help on using the changeset viewer.