- Timestamp:
- Sep 15, 2009 7:03:49 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxBFE
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/HostUSBImpl.cpp
r19300 r23021 243 243 244 244 LogFlowMember (("Console::AttachUSBDevice: Proxying USB device '%s' %RTuuid...\n", Address.c_str(), &Uuid)); 245 PVMREQ pReq; 246 vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 245 vrc = VMR3ReqCallWait (mpVM, VMCPUID_ANY, 247 246 (PFNRT)pRhConfig->pfnCreateProxyDevice, 248 247 5, pRhConfig, &Uuid, fRemote, 249 248 Address.c_str(), pvRemote); 250 if (RT_SUCCESS (vrc))251 vrc = pReq->iStatus;252 VMR3ReqFree (pReq);253 249 if (RT_SUCCESS (vrc)) 254 250 hostDevice->setCaptured(); … … 302 298 RTUUID Uuid = aDevice->id(); 303 299 LogFlowMember (("Console::DetachUSBDevice: Detaching USB proxy device %RTuuid...\n", &Uuid)); 304 PVMREQ pReq; 305 vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)pRhConfig->pfnDestroyProxyDevice, 300 vrc = VMR3ReqCallWait (mpVM, VMCPUID_ANY, (PFNRT)pRhConfig->pfnDestroyProxyDevice, 306 301 2, pRhConfig, &Uuid); 307 if (RT_SUCCESS (vrc))308 vrc = pReq->iStatus;309 VMR3ReqFree (pReq);310 302 } 311 303 } -
trunk/src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp
r19300 r23021 136 136 } 137 137 138 PVMREQ pReq;139 138 EMRAWMODE rawModeFlag = enable ? EMRAW_RING3_DISABLE : EMRAW_RING3_ENABLE; 140 int rcVBox = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 141 (PFNRT)EMR3RawSetMode, 2, pVM, rawModeFlag); 142 if (RT_SUCCESS(rcVBox)) 143 { 144 rcVBox = pReq->iStatus; 145 VMR3ReqFree(pReq); 146 } 147 139 int rcVBox = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)EMR3RawSetMode, 2, pVM, rawModeFlag); 148 140 if (RT_SUCCESS(rcVBox)) 149 141 return S_OK; … … 196 188 } 197 189 198 PVMREQ pReq;199 190 EMRAWMODE rawModeFlag = enable ? EMRAW_RING0_DISABLE : EMRAW_RING0_ENABLE; 200 int rcVBox = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 201 (PFNRT)EMR3RawSetMode, 2, pVM, rawModeFlag); 202 if (RT_SUCCESS(rcVBox)) 203 { 204 rcVBox = pReq->iStatus; 205 VMR3ReqFree(pReq); 206 } 207 191 int rcVBox = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)EMR3RawSetMode, 2, pVM, rawModeFlag); 208 192 if (RT_SUCCESS(rcVBox)) 209 193 return S_OK; -
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r20501 r23021 965 965 { 966 966 /* Power off VM */ 967 PVMREQ pReq;968 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)VMR3PowerOff, 1, pVM);967 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMR3PowerOff, 1, pVM); 968 AssertRC(rc); 969 969 } 970 970 … … 1270 1270 if (RT_SUCCESS(rc)) 1271 1271 { 1272 PVMREQ pReq;1273 1274 1272 if ( g_fRestoreState 1275 1273 && g_pszStateFile … … 1278 1276 { 1279 1277 startProgressInfo("Restoring"); 1280 rc = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,1278 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, 1281 1279 (PFNRT)VMR3Load, 4, pVM, g_pszStateFile, &callProgressInfo, (uintptr_t)NULL); 1282 1280 endProgressInfo(); 1283 1281 if (RT_SUCCESS(rc)) 1284 1282 { 1285 VMR3ReqFree(pReq); 1286 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 1287 (PFNRT)VMR3Resume, 1, pVM); 1288 if (RT_SUCCESS(rc)) 1289 { 1290 rc = pReq->iStatus; 1291 VMR3ReqFree(pReq); 1292 } 1283 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMR3Resume, 1, pVM); 1284 AssertRC(rc); 1293 1285 gDisplay->setRunning(); 1294 1286 } … … 1298 1290 else 1299 1291 { 1300 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)VMR3PowerOn, 1, pVM); 1301 if (RT_SUCCESS(rc)) 1302 { 1303 rc = pReq->iStatus; 1304 AssertRC(rc); 1305 VMR3ReqFree(pReq); 1306 } 1307 else 1292 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMR3PowerOn, 1, pVM); 1293 if (RT_FAILURE(rc)) 1308 1294 AssertMsgFailed(("VMR3PowerOn failed, rc=%Rrc\n", rc)); 1309 1295 } -
trunk/src/VBox/Frontends/VBoxBFE/VMControl.cpp
r22784 r23021 62 62 gConsole->inputGrabEnd(); 63 63 64 PVMREQ pReq; 65 int rcVBox = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 66 (PFNRT)VMR3Suspend, 1, pVM); 64 int rcVBox = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMR3Suspend, 1, pVM); 67 65 AssertRC(rcVBox); 68 if (RT_SUCCESS(rcVBox))69 {70 rcVBox = pReq->iStatus;71 VMR3ReqFree(pReq);72 }73 66 return VINF_SUCCESS; 74 67 } … … 83 76 return VERR_VM_INVALID_VM_STATE; 84 77 85 PVMREQ pReq; 86 int rcVBox = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 87 (PFNRT)VMR3Resume, 1, pVM); 78 int rcVBox = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMR3Resume, 1, pVM); 88 79 AssertRC(rcVBox); 89 if (RT_SUCCESS(rcVBox))90 {91 rcVBox = pReq->iStatus;92 VMR3ReqFree(pReq);93 }94 80 return VINF_SUCCESS; 95 81 } … … 101 87 VMCtrlReset(void) 102 88 { 103 PVMREQ pReq; 104 int rcVBox = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 105 (PFNRT)VMR3Reset, 1, pVM); 89 int rcVBox = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMR3Reset, 1, pVM); 106 90 AssertRC(rcVBox); 107 if (RT_SUCCESS(rcVBox))108 {109 rcVBox = pReq->iStatus;110 VMR3ReqFree(pReq);111 }112 113 91 return VINF_SUCCESS; 114 92 } … … 155 133 DECLCALLBACK(int) VMSaveThread(RTTHREAD Thread, void *pvUser) 156 134 { 157 PVMREQ pReq;158 135 void (*pfnQuit)(void) = (void(*)(void))pvUser; 159 136 int rc; 160 137 161 138 startProgressInfo("Saving"); 162 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 163 (PFNRT)VMR3Save, 5, pVM, g_pszStateFile, false /*fContinueAftewards*/, &callProgressInfo, (uintptr_t)NULL); 139 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, 140 (PFNRT)VMR3Save, 5, pVM, g_pszStateFile, false /*fContinueAftewards*/, &callProgressInfo, (uintptr_t)NULL); 141 AssertRC(rc); 164 142 endProgressInfo(); 165 if (RT_SUCCESS(rc))166 {167 rc = pReq->iStatus;168 VMR3ReqFree(pReq);169 }170 143 pfnQuit(); 171 144 172 return 0;145 return VINF_SUCCESS; 173 146 } 174 147 … … 192 165 if (machineState == VMSTATE_RUNNING) 193 166 { 194 PVMREQ pReq; 195 rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 196 (PFNRT)VMR3Suspend, 1, pVM); 167 rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMR3Suspend, 1, pVM); 197 168 AssertRC(rc); 198 if (RT_SUCCESS(rc))199 {200 rc = pReq->iStatus;201 VMR3ReqFree(pReq);202 }203 169 } 204 170
Note:
See TracChangeset
for help on using the changeset viewer.