Changeset 23012 in vbox
- Timestamp:
- Sep 14, 2009 4:38:13 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ATAController.cpp
r21321 r23012 2256 2256 2257 2257 PDMCritSectLeave(&pCtl->lock); 2258 rc = VMR3ReqCall (PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,2259 (PFNRT)s->pDrvMount->pfnUnmount, 2, s->pDrvMount, false);2258 rc = VMR3ReqCallWait(PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, 2259 (PFNRT)s->pDrvMount->pfnUnmount, 2, s->pDrvMount, false); 2260 2260 AssertReleaseRC(rc); 2261 VMR3ReqFree(pReq);2262 2261 { 2263 2262 STAM_PROFILE_START(&pCtl->StatLockWait, a); … … 3822 3821 { 3823 3822 PPDMDEVINS pDevIns = CONTROLLER_2_DEVINS(pCtl); 3824 PVMREQ pReq;3825 3823 int rc; 3826 3824 3827 3825 pCtl->fRedoIdle = true; 3828 rc = VMR3ReqCall (PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,3829 (PFNRT)PDMDevHlpVMSuspend, 1, pDevIns);3826 rc = VMR3ReqCallWait(PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, 3827 (PFNRT)PDMDevHlpVMSuspend, 1, pDevIns); 3830 3828 AssertReleaseRC(rc); 3831 VMR3ReqFree(pReq);3832 3829 } 3833 3830 -
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r22793 r23012 3658 3658 PAHCI pAhci = pAhciPort->CTX_SUFF(pAhci); 3659 3659 PPDMDEVINS pDevIns = pAhci->CTX_SUFF(pDevIns); 3660 PVMREQ pReq; 3661 3662 rc = VMR3ReqCall(PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 3663 (PFNRT)pAhciPort->pDrvMount->pfnUnmount, 2, pAhciPort->pDrvMount, false); 3660 3661 rc = VMR3ReqCallWait(PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, 3662 (PFNRT)pAhciPort->pDrvMount->pfnUnmount, 2, pAhciPort->pDrvMount, false); 3664 3663 AssertReleaseRC(rc); 3665 VMR3ReqFree(pReq);3666 3664 } 3667 3665 break; -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r22934 r23012 1410 1410 { 1411 1411 PPDMDEVINS pDevIns = CONTROLLER_2_DEVINS(pCtl); 1412 PVMREQ pReq;1413 1412 int rc; 1414 1413 1415 1414 pCtl->fRedoIdle = true; 1416 rc = VMR3ReqCall (PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,1417 (PFNRT)PDMDevHlpVMSuspend, 1, pDevIns);1415 rc = VMR3ReqCallWait(PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, 1416 (PFNRT)PDMDevHlpVMSuspend, 1, pDevIns); 1418 1417 AssertReleaseRC(rc); 1419 VMR3ReqFree(pReq);1420 1418 } 1421 1419 … … 2891 2889 PATACONTROLLER pCtl = ATADEVSTATE_2_CONTROLLER(s); 2892 2890 PPDMDEVINS pDevIns = ATADEVSTATE_2_DEVINS(s); 2893 PVMREQ pReq;2894 2891 2895 2892 PDMCritSectLeave(&pCtl->lock); 2896 rc = VMR3ReqCall (PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,2897 (PFNRT)s->pDrvMount->pfnUnmount, 2, s->pDrvMount, false);2893 rc = VMR3ReqCallWait(PDMDevHlpGetVM(pDevIns), VMCPUID_ANY, 2894 (PFNRT)s->pDrvMount->pfnUnmount, 2, s->pDrvMount, false); 2898 2895 AssertReleaseRC(rc); 2899 VMR3ReqFree(pReq);2900 2896 { 2901 2897 STAM_PROFILE_START(&pCtl->StatLockWait, a); -
trunk/src/VBox/Main/ConsoleImpl.cpp
r23009 r23012 2928 2928 this, pszDevice, uInstance, uLun, eState, peState, 2929 2929 pszPath, fPassthrough); 2930 /// @todo (r=dmik) bird, it would be nice to have a special VMR3Req method2931 // for that purpose, that doesn't return useless VERR_TIMEOUT2932 if (vrc == VERR_TIMEOUT)2933 vrc = VINF_SUCCESS;2934 2930 2935 2931 /* leave the lock before waiting for a result (EMT will call us back!) */ 2936 2932 alock.leave(); 2937 2933 2938 if ( VBOX_SUCCESS (vrc))2934 if (vrc == VERR_TIMEOUT || VBOX_SUCCESS (vrc)) 2939 2935 { 2940 2936 vrc = VMR3ReqWait (pReq, RT_INDEFINITE_WAIT); … … 5882 5878 5883 5879 /** @todo just do everything here and only wrap the PDMR3Usb call. That'll offload some notification stuff from the EMT thread. */ 5884 PVMREQ pReq = NULL; 5885 int vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 5886 (PFNRT) usbAttachCallback, 6, this, aHostDevice, uuid.ptr(), fRemote, Address.raw(), aMaskedIfs); 5887 if (VBOX_SUCCESS (vrc)) 5888 vrc = pReq->iStatus; 5889 VMR3ReqFree (pReq); 5880 int vrc = VMR3ReqCallWait (mpVM, VMCPUID_ANY, 5881 (PFNRT) usbAttachCallback, 6, this, aHostDevice, uuid.ptr(), fRemote, Address.raw(), aMaskedIfs); 5890 5882 5891 5883 /* restore the lock */ … … 6006 5998 alock.leave(); 6007 5999 6008 PVMREQ pReq;6009 6000 /** @todo just do everything here and only wrap the PDMR3Usb call. That'll offload some notification stuff from the EMT thread. */ 6010 int vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 6011 (PFNRT) usbDetachCallback, 4, 6012 this, &aIt, (*aIt)->id().raw()); 6013 if (VBOX_SUCCESS (vrc)) 6014 vrc = pReq->iStatus; 6015 VMR3ReqFree (pReq); 6016 6001 int vrc = VMR3ReqCallWait (mpVM, VMCPUID_ANY, 6002 (PFNRT) usbDetachCallback, 4, this, &aIt, (*aIt)->id().raw()); 6017 6003 ComAssertRCRet (vrc, E_FAIL); 6018 6004 … … 7387 7373 * to access Console. 7388 7374 */ 7389 int vrc = VMR3ReqCall(that->mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 7390 (PFNRT)reconfigureHardDisks, 5, that->mpVM, lInstance, enmController, atts[i], &rc); 7391 if (RT_SUCCESS(vrc)) 7392 vrc = pReq->iStatus; 7393 VMR3ReqFree(pReq); 7375 int vrc = VMR3ReqCallWait(that->mpVM, VMCPUID_ANY, 7376 (PFNRT)reconfigureHardDisks, 5, that->mpVM, lInstance, enmController, atts[i], &rc); 7394 7377 if (RT_FAILURE(vrc)) 7395 7378 { -
trunk/src/VBox/Main/DisplayImpl.cpp
r22793 r23012 1422 1422 1423 1423 /* send request to the EMT thread */ 1424 PVMREQ pReq = NULL; 1425 int vrc = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 1426 (PFNRT) changeFramebuffer, 3, this, aFramebuffer, aScreenId); 1427 if (RT_SUCCESS(vrc)) 1428 vrc = pReq->iStatus; 1429 VMR3ReqFree (pReq); 1424 int vrc = VMR3ReqCallWait (pVM, VMCPUID_ANY, 1425 (PFNRT) changeFramebuffer, 3, this, aFramebuffer, aScreenId); 1430 1426 1431 1427 alock.enter (); … … 1577 1573 && mpDrv->Connector.cy == height) 1578 1574 { 1579 PVMREQ pReq;1580 1575 size_t cbData = RT_ALIGN_Z(width, 4) * 4 * height; 1581 rcVBox = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 1582 (PFNRT)mpDrv->pUpPort->pfnSnapshot, 6, mpDrv->pUpPort, 1583 address, cbData, (uintptr_t)NULL, (uintptr_t)NULL, (uintptr_t)NULL); 1584 if (RT_SUCCESS(rcVBox)) 1585 { 1586 rcVBox = pReq->iStatus; 1587 VMR3ReqFree(pReq); 1588 } 1576 rcVBox = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)mpDrv->pUpPort->pfnSnapshot, 6, mpDrv->pUpPort, 1577 address, cbData, (uintptr_t)NULL, (uintptr_t)NULL, (uintptr_t)NULL); 1589 1578 } 1590 1579 … … 1649 1638 * dirty conversion work. 1650 1639 */ 1651 PVMREQ pReq; 1652 int rcVBox = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 1653 (PFNRT)mpDrv->pUpPort->pfnDisplayBlt, 6, mpDrv->pUpPort, 1654 address, x, y, width, height); 1655 if (RT_SUCCESS(rcVBox)) 1656 { 1657 rcVBox = pReq->iStatus; 1658 VMR3ReqFree(pReq); 1659 } 1640 int rcVBox = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)mpDrv->pUpPort->pfnDisplayBlt, 6, 1641 mpDrv->pUpPort, address, x, y, width, height); 1660 1642 1661 1643 /* -
trunk/src/VBox/Main/MachineDebuggerImpl.cpp
r21878 r23012 198 198 CheckComRCReturnRC(pVM.rc()); 199 199 200 PVMREQ pReq;201 200 EMRAWMODE rawModeFlag = aEnable ? EMRAW_RING3_DISABLE : EMRAW_RING3_ENABLE; 202 int rcVBox = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 203 (PFNRT)EMR3RawSetMode, 2, pVM.raw(), rawModeFlag); 204 if (RT_SUCCESS(rcVBox)) 205 { 206 rcVBox = pReq->iStatus; 207 VMR3ReqFree (pReq); 208 } 209 201 int rcVBox = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)EMR3RawSetMode, 2, pVM.raw(), rawModeFlag); 210 202 if (RT_SUCCESS(rcVBox)) 211 203 return S_OK; … … 266 258 CheckComRCReturnRC(pVM.rc()); 267 259 268 PVMREQ pReq;269 260 EMRAWMODE rawModeFlag = aEnable ? EMRAW_RING0_DISABLE : EMRAW_RING0_ENABLE; 270 int rcVBox = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 271 (PFNRT)EMR3RawSetMode, 2, pVM.raw(), rawModeFlag); 272 if (RT_SUCCESS(rcVBox)) 273 { 274 rcVBox = pReq->iStatus; 275 VMR3ReqFree (pReq); 276 } 277 261 int rcVBox = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)EMR3RawSetMode, 2, pVM.raw(), rawModeFlag); 278 262 if (RT_SUCCESS(rcVBox)) 279 263 return S_OK; -
trunk/src/VBox/VMM/DBGF.cpp
r22890 r23012 853 853 * Call the VM, use EMT for serialization. 854 854 */ 855 PVMREQ pReq; 856 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3Attach, 1, pVM); 857 if (RT_SUCCESS(rc)) 858 rc = pReq->iStatus; 859 VMR3ReqFree(pReq); 860 861 return rc; 855 /** @todo SMP */ 856 return VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3Attach, 1, pVM); 862 857 } 863 858 -
trunk/src/VBox/VMM/DBGFAddr.cpp
r22890 r23012 277 277 rc = dbgfR3AddrToPhysOnVCpu(pVCpu, pAddress, pGCPhys); 278 278 else 279 { 280 PVMREQ pReq = NULL; 281 rc = VMR3ReqCall(pVCpu->pVMR3, pVCpu->idCpu, &pReq, RT_INDEFINITE_WAIT, 282 (PFNRT)dbgfR3AddrToPhysOnVCpu, 3, pVCpu, pAddress, pGCPhys); 283 if (RT_SUCCESS(rc)) 284 { 285 rc = pReq->iStatus; 286 VMR3ReqFree(pReq); 287 } 288 } 279 rc = VMR3ReqCallWait(pVCpu->pVMR3, pVCpu->idCpu, 280 (PFNRT)dbgfR3AddrToPhysOnVCpu, 3, pVCpu, pAddress, pGCPhys); 289 281 } 290 282 return rc; … … 443 435 * Convert it. 444 436 */ 445 PVMREQ pReq = NULL; 446 int rc = VMR3ReqCall(pVM, idCpu, &pReq, RT_INDEFINITE_WAIT, 447 (PFNRT)dbgfR3AddrToVolatileR3PtrOnVCpu, 5, pVM, idCpu, pAddress, fReadOnly, ppvR3Ptr); 448 if (RT_SUCCESS(rc)) 449 { 450 rc = pReq->iStatus; 451 VMR3ReqFree(pReq); 452 } 453 454 return rc; 437 return VMR3ReqCallWait(pVM, idCpu, (PFNRT)dbgfR3AddrToVolatileR3PtrOnVCpu, 5, pVM, idCpu, pAddress, fReadOnly, ppvR3Ptr); 455 438 } 456 439 -
trunk/src/VBox/VMM/DBGFBp.cpp
r20374 r23012 287 287 * This must be done in EMT. 288 288 */ 289 PVMREQ pReq; 290 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3BpSetInt3, 5, pVM, pAddress, &iHitTrigger, &iHitDisable, piBp); 291 if (RT_SUCCESS(rc)) 292 rc = pReq->iStatus; 293 VMR3ReqFree(pReq); 289 /** @todo SMP? */ 290 int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpSetInt3, 5, pVM, pAddress, &iHitTrigger, &iHitDisable, piBp); 294 291 LogFlow(("DBGFR3BpSet: returns %Rrc\n", rc)); 295 292 return rc; … … 448 445 * This must be done in EMT. 449 446 */ 450 PVMREQ pReq; 451 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3BpSetReg, 7, pVM, pAddress, &iHitTrigger, &iHitDisable, fType, cb, piBp); 452 if (RT_SUCCESS(rc)) 453 rc = pReq->iStatus; 454 VMR3ReqFree(pReq); 447 int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpSetReg, 7, pVM, pAddress, &iHitTrigger, &iHitDisable, fType, cb, piBp); 455 448 LogFlow(("DBGFR3BpSetReg: returns %Rrc\n", rc)); 456 449 return rc; … … 619 612 * This must be done in EMT. 620 613 */ 621 PVMREQ pReq; 622 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3BpSetREM, 5, pVM, pAddress, &iHitTrigger, &iHitDisable, piBp); 623 if (RT_SUCCESS(rc)) 624 rc = pReq->iStatus; 625 VMR3ReqFree(pReq); 614 int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpSetREM, 5, pVM, pAddress, &iHitTrigger, &iHitDisable, piBp); 626 615 LogFlow(("DBGFR3BpSetREM: returns %Rrc\n", rc)); 627 616 return rc; … … 715 704 * This must be done in EMT. 716 705 */ 717 PVMREQ pReq; 718 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3BpClear, 2, pVM, iBp); 719 if (RT_SUCCESS(rc)) 720 rc = pReq->iStatus; 721 VMR3ReqFree(pReq); 706 int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpClear, 2, pVM, iBp); 722 707 LogFlow(("DBGFR3BpClear: returns %Rrc\n", rc)); 723 708 return rc; … … 792 777 * This must be done in EMT. 793 778 */ 794 PVMREQ pReq; 795 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3BpEnable, 2, pVM, iBp); 796 if (RT_SUCCESS(rc)) 797 rc = pReq->iStatus; 798 VMR3ReqFree(pReq); 779 int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpEnable, 2, pVM, iBp); 799 780 LogFlow(("DBGFR3BpEnable: returns %Rrc\n", rc)); 800 781 return rc; … … 869 850 * This must be done in EMT. 870 851 */ 871 PVMREQ pReq; 872 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3BpDisable, 2, pVM, iBp); 873 if (RT_SUCCESS(rc)) 874 rc = pReq->iStatus; 875 VMR3ReqFree(pReq); 852 int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpDisable, 2, pVM, iBp); 876 853 LogFlow(("DBGFR3BpDisable: returns %Rrc\n", rc)); 877 854 return rc; … … 945 922 * This must be done in EMT. 946 923 */ 947 PVMREQ pReq; 948 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3BpEnum, 3, pVM, pfnCallback, pvUser); 949 if (RT_SUCCESS(rc)) 950 rc = pReq->iStatus; 951 VMR3ReqFree(pReq); 924 int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpEnum, 3, pVM, pfnCallback, pvUser); 952 925 LogFlow(("DBGFR3BpClear: returns %Rrc\n", rc)); 953 926 return rc; -
trunk/src/VBox/VMM/DBGFDisas.cpp
r22890 r23012 563 563 rc = dbgfR3DisasInstrExOnVCpu(pVM, pVCpu, Sel, &GCPtr, fFlags, pszOutput, cchOutput, pcbInstr); 564 564 else 565 { 566 PVMREQ pReq = NULL; 567 rc = VMR3ReqCall(pVM, idCpu, &pReq, RT_INDEFINITE_WAIT, 568 (PFNRT)dbgfR3DisasInstrExOnVCpu, 8, 569 pVM, VMMGetCpuById(pVM, idCpu), Sel, &GCPtr, fFlags, pszOutput, cchOutput, pcbInstr); 570 if (RT_SUCCESS(rc)) 571 { 572 rc = pReq->iStatus; 573 VMR3ReqFree(pReq); 574 } 575 } 565 rc = VMR3ReqCallWait(pVM, idCpu, (PFNRT)dbgfR3DisasInstrExOnVCpu, 8, 566 pVM, VMMGetCpuById(pVM, idCpu), Sel, &GCPtr, fFlags, pszOutput, cchOutput, pcbInstr); 576 567 return rc; 577 568 } -
trunk/src/VBox/VMM/DBGFLog.cpp
r21377 r23012 49 49 VMMR3DECL(int) DBGFR3LogModifyGroups(PVM pVM, const char *pszGroupSettings) 50 50 { 51 Assert Return(VALID_PTR(pVM), VERR_INVALID_POINTER);52 Assert Return(VALID_PTR(pszGroupSettings), VERR_INVALID_POINTER);51 AssertPtrReturn(pVM, VERR_INVALID_POINTER); 52 AssertPtrReturn(pszGroupSettings, VERR_INVALID_POINTER); 53 53 54 PVMREQ pReq; 55 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3LogModifyGroups, 2, pVM, pszGroupSettings); 56 if (RT_SUCCESS(rc)) 57 rc = pReq->iStatus; 58 VMR3ReqFree(pReq); 59 return rc; 54 return VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3LogModifyGroups, 2, pVM, pszGroupSettings); 60 55 } 61 56 … … 86 81 VMMR3DECL(int) DBGFR3LogModifyFlags(PVM pVM, const char *pszFlagSettings) 87 82 { 88 Assert Return(VALID_PTR(pVM), VERR_INVALID_POINTER);89 Assert Return(VALID_PTR(pszFlagSettings), VERR_INVALID_POINTER);83 AssertPtrReturn(pVM, VERR_INVALID_POINTER); 84 AssertPtrReturn(pszFlagSettings, VERR_INVALID_POINTER); 90 85 91 PVMREQ pReq; 92 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3LogModifyFlags, 2, pVM, pszFlagSettings); 93 if (RT_SUCCESS(rc)) 94 rc = pReq->iStatus; 95 VMR3ReqFree(pReq); 96 return rc; 86 return VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3LogModifyFlags, 2, pVM, pszFlagSettings); 97 87 } 98 88 … … 126 116 AssertReturn(VALID_PTR(pszDestSettings), VERR_INVALID_POINTER); 127 117 128 PVMREQ pReq; 129 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3LogModifyDestinations, 2, pVM, pszDestSettings); 130 if (RT_SUCCESS(rc)) 131 rc = pReq->iStatus; 132 VMR3ReqFree(pReq); 133 return rc; 118 return VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3LogModifyDestinations, 2, pVM, pszDestSettings); 134 119 } 135 120 -
trunk/src/VBox/VMM/DBGFMem.cpp
r23011 r23012 123 123 { 124 124 AssertReturn(idCpu < pVM->cCpus, VERR_INVALID_PARAMETER); 125 126 PVMREQ pReq; 127 int rc = VMR3ReqCall(pVM, idCpu, &pReq, RT_INDEFINITE_WAIT, 128 (PFNRT)dbgfR3MemScan, 7, pVM, idCpu, pAddress, &cbRange, pabNeedle, cbNeedle, pHitAddress); 129 if (RT_SUCCESS(rc)) 130 rc = pReq->iStatus; 131 VMR3ReqFree(pReq); 132 133 return rc; 125 return VMR3ReqCallWait(pVM, idCpu, (PFNRT)dbgfR3MemScan, 7, 126 pVM, idCpu, pAddress, &cbRange, pabNeedle, cbNeedle, pHitAddress); 127 134 128 } 135 129 -
trunk/src/VBox/VMM/DBGFStack.cpp
r22890 r23012 464 464 AssertFailedReturn(VERR_INVALID_PARAMETER); 465 465 } 466 PVMREQ pReq; 467 int rc = VMR3ReqCall(pVM, idCpu, &pReq, RT_INDEFINITE_WAIT, 468 (PFNRT)dbgfR3StackWalkCtxFull, 10, 469 pVM, idCpu, pCtxCore, hAs, enmCodeType, 470 pAddrFrame, pAddrStack, pAddrPC, enmReturnType, ppFirstFrame); 471 if (RT_SUCCESS(rc)) 472 rc = pReq->iStatus; 473 VMR3ReqFree(pReq); 474 475 return rc; 476 466 return VMR3ReqCallWait(pVM, idCpu, (PFNRT)dbgfR3StackWalkCtxFull, 10, 467 pVM, idCpu, pCtxCore, hAs, enmCodeType, 468 pAddrFrame, pAddrStack, pAddrPC, enmReturnType, ppFirstFrame); 477 469 } 478 470 -
trunk/src/VBox/VMM/PGMPhys.cpp
r23009 r23012 148 148 pgmUnlock(pVM); 149 149 150 PVMREQ pReq = NULL; 151 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 152 (PFNRT)pgmR3PhysReadExternalEMT, 4, pVM, &GCPhys, pvBuf, cbRead); 153 if (RT_SUCCESS(rc)) 154 { 155 rc = pReq->iStatus; 156 VMR3ReqFree(pReq); 157 } 158 return rc; 150 return VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)pgmR3PhysReadExternalEMT, 4, 151 pVM, &GCPhys, pvBuf, cbRead); 159 152 } 160 153 Assert(!PGM_PAGE_IS_MMIO(pPage)); … … 284 277 pgmUnlock(pVM); 285 278 286 PVMREQ pReq = NULL; 287 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 288 (PFNRT)pgmR3PhysWriteExternalEMT, 4, pVM, &GCPhys, pvBuf, cbWrite); 289 if (RT_SUCCESS(rc)) 290 { 291 rc = pReq->iStatus; 292 VMR3ReqFree(pReq); 293 } 294 return rc; 279 return VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)pgmR3PhysWriteExternalEMT, 4, 280 pVM, &GCPhys, pvBuf, cbWrite); 295 281 } 296 282 Assert(!PGM_PAGE_IS_MMIO(pPage)); … … 458 444 pgmUnlock(pVM); 459 445 460 PVMREQ pReq = NULL; 461 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 462 (PFNRT)pgmR3PhysGCPhys2CCPtrDelegated, 4, pVM, &GCPhys, ppv, pLock); 463 if (RT_SUCCESS(rc)) 464 { 465 rc = pReq->iStatus; 466 VMR3ReqFree(pReq); 467 } 468 return rc; 446 return VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)pgmR3PhysGCPhys2CCPtrDelegated, 4, 447 pVM, &GCPhys, ppv, pLock); 469 448 } 470 449 -
trunk/src/VBox/VMM/TM.cpp
r22890 r23012 2523 2523 VMMDECL(int) TMR3SetWarpDrive(PVM pVM, uint32_t u32Percent) 2524 2524 { 2525 PVMREQ pReq; 2526 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 2527 (PFNRT)tmR3SetWarpDrive, 2, pVM, u32Percent); 2528 if (RT_SUCCESS(rc)) 2529 rc = pReq->iStatus; 2530 VMR3ReqFree(pReq); 2531 return rc; 2525 return VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)tmR3SetWarpDrive, 2, pVM, u32Percent); 2532 2526 } 2533 2527 -
trunk/src/VBox/VMM/VMMAll/PDMAllQueue.cpp
r21367 r23012 192 192 193 193 #else /* IN_RING3: */ 194 PVMREQ pReq; 195 VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)PDMR3QueueFlushWorker, 2, pVM, pQueue); 196 VMR3ReqFree(pReq); 194 VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)PDMR3QueueFlushWorker, 2, pVM, pQueue); 197 195 #endif 198 196 } -
trunk/src/VBox/VMM/VMMAll/VMAll.cpp
r23011 r23012 85 85 va_list va2; 86 86 va_copy(va2, args); /* Have to make a copy here or GCC will break. */ 87 PVMREQ pReq; 88 VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)vmR3SetErrorUV, 7, /* ASSUMES 3 source pos args! */ 89 pVM->pUVM, rc, RT_SRC_POS_ARGS, pszFormat, &va2); 90 VMR3ReqFree(pReq); 87 VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)vmR3SetErrorUV, 7, /* ASSUMES 3 source pos args! */ 88 pVM->pUVM, rc, RT_SRC_POS_ARGS, pszFormat, &va2); 91 89 va_end(va2); 92 90 -
trunk/src/VBox/VMM/testcase/tstAnimate.cpp
r19500 r23012 834 834 * Load memory. 835 835 */ 836 PVMREQ pReq1 = NULL;837 836 if (FileRawMem != NIL_RTFILE) 838 rc = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)loadMem, 3, pVM, FileRawMem, &offRawMem);837 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)loadMem, 3, pVM, FileRawMem, &offRawMem); 839 838 else 840 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)SSMR3Load, 4, pVM, pszSavedState, SSMAFTER_DEBUG_IT, NULL, NULL); 841 AssertReleaseRC(rc); 842 rc = pReq1->iStatus; 843 VMR3ReqFree(pReq1); 839 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)SSMR3Load, 4, pVM, pszSavedState, SSMAFTER_DEBUG_IT, NULL, NULL); 844 840 if (RT_SUCCESS(rc)) 845 841 { … … 848 844 */ 849 845 if (FileScript != NIL_RTFILE) 850 { 851 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)scriptRun, 2, pVM, FileScript); 852 AssertReleaseRC(rc); 853 rc = pReq1->iStatus; 854 VMR3ReqFree(pReq1); 855 } 846 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)scriptRun, 2, pVM, FileScript); 856 847 if (RT_SUCCESS(rc)) 857 848 { … … 877 868 if (RT_SUCCESS(rc)) 878 869 { 879 rc = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)EMR3RawSetMode, 2, pVM, EMRAW_NONE);870 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)EMR3RawSetMode, 2, pVM, EMRAW_NONE); 880 871 AssertReleaseRC(rc); 881 VMR3ReqFree(pReq1);882 883 872 DBGFR3Info(pVM, "cpumguest", "verbose", NULL); 884 873 if (fPowerOn) -
trunk/src/VBox/VMM/testcase/tstVMM-HwAccm.cpp
r19300 r23012 93 93 */ 94 94 RTPrintf(TESTCASE ": Testing...\n"); 95 PVMREQ pReq1 = NULL; 96 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)VMMDoHwAccmTest, 1, pVM); 95 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMMDoHwAccmTest, 1, pVM); 97 96 AssertRC(rc); 98 VMR3ReqFree(pReq1);99 97 100 98 STAMR3Dump(pVM, "*"); … … 104 102 */ 105 103 rc = VMR3Destroy(pVM); 106 if ( !RT_SUCCESS(rc))104 if (RT_FAILURE(rc)) 107 105 { 108 106 RTPrintf(TESTCASE ": error: failed to destroy vm! rc=%d\n", rc); -
trunk/src/VBox/VMM/testcase/tstVMM.cpp
r23011 r23012 281 281 { 282 282 RTTestSub(hTest, "VMM"); 283 PVMREQ pReq1 = NULL; 284 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)VMMDoTest, 1, pVM); 283 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMMDoTest, 1, pVM); 285 284 if (RT_FAILURE(rc)) 286 RTTestFailed(hTest, "VMR3ReqCall failed: rc=%Rrc\n", rc);287 else if (RT_FAILURE(pReq1->iStatus))288 285 RTTestFailed(hTest, "VMMDoTest failed: rc=%Rrc\n", rc); 289 VMR3ReqFree(pReq1);290 286 break; 291 287 } … … 301 297 } 302 298 303 PVMREQ pReq1 = NULL; 304 rc = VMR3ReqCall(pVM, 0, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)tstTMWorker, 2, pVM, hTest); 299 rc = VMR3ReqCallWait(pVM, 0 /*idDstCpu*/, (PFNRT)tstTMWorker, 2, pVM, hTest); 305 300 if (RT_FAILURE(rc)) 306 RTTestFailed(hTest, "VMR3ReqCall failed: rc=%Rrc\n", rc);307 else if (RT_FAILURE(pReq1->iStatus))308 301 RTTestFailed(hTest, "VMMDoTest failed: rc=%Rrc\n", rc); 309 VMR3ReqFree(pReq1);310 302 break; 311 303 } -
trunk/src/VBox/VMM/testcase/tstVMMFork.cpp
r19300 r23012 136 136 RTPrintf(TESTCASE ": fork() returned fine.\n"); 137 137 RTPrintf(TESTCASE ": testing VM after fork.\n"); 138 PVMREQ pReq1 = NULL; 139 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)VMMDoTest, 1, pVM); 140 AssertRC(rc); 141 VMR3ReqFree(pReq1); 138 VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMMDoTest, 1, pVM); 142 139 143 140 STAMR3Dump(pVM, "*"); -
trunk/src/VBox/VMM/testcase/tstVMREQ.cpp
r19300 r23012 134 134 #endif 135 135 136 PVMREQ pReq; 137 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)PassVACallback, 5, 138 pVM, _4K, _1G, pszFormat, pvVA); 139 if (RT_SUCCESS(rc)) 140 rc = pReq->iStatus; 141 VMR3ReqFree(pReq); 136 int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)PassVACallback, 5, pVM, _4K, _1G, pszFormat, pvVA); 137 NOREF(rc); 142 138 143 139 #if 1 … … 156 152 va_list va1; 157 153 va_start(va1, pszFormat); 158 PVMREQ pReq; 159 int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)PassVACallback, 5, 160 pVM, _4K, _1G, pszFormat, &va1); 161 if (RT_SUCCESS(rc)) 162 rc = pReq->iStatus; 163 VMR3ReqFree(pReq); 154 int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)PassVACallback, 5, pVM, _4K, _1G, pszFormat, &va1); 164 155 va_end(va1); 156 NOREF(rc); 165 157 166 158 /* 2nd test */ -
trunk/src/recompiler/VBoxRecompiler.c
r22890 r23012 3647 3647 return remR3DisasEnableStepping(pVM, fEnable); 3648 3648 3649 rc = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)remR3DisasEnableStepping, 2, pVM, fEnable);3649 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)remR3DisasEnableStepping, 2, pVM, fEnable); 3650 3650 AssertRC(rc); 3651 3651 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.