儲存庫 vbox 的更動 68654
- 時間撮記:
- 2017-9-5 下午05:22:12 (7 年 以前)
- 位置:
- trunk
- 檔案:
-
- 修改 22 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/VBox/VBoxGuestLib.h
r68630 r68654 101 101 * @return VBox status code. 102 102 */ 103 DECLR0VBGL(int) VbglInitPrimary(RTIOPORT portVMMDev, struct VMMDevMemory *pVMMDevMemory);103 DECLR0VBGL(int) VbglR0InitPrimary(RTIOPORT portVMMDev, struct VMMDevMemory *pVMMDevMemory); 104 104 105 105 /** … … 108 108 * @author bird (2017-08-23) 109 109 */ 110 DECLR0VBGL(void) VbglR0TerminatePrimary(void);110 DECLR0VBGL(void) VbglR0TerminatePrimary(void); 111 111 112 112 /** … … 116 116 * @return VBox status code. 117 117 */ 118 DECLR0VBGL(int) VbglR0InitClient(void);118 DECLR0VBGL(int) VbglR0InitClient(void); 119 119 120 120 /** 121 121 * The library termination function. 122 122 */ 123 DECLR0VBGL(void) VbglR0TerminateClient(void);123 DECLR0VBGL(void) VbglR0TerminateClient(void); 124 124 125 125 … … 167 167 */ 168 168 # if defined(___VBox_VMMDev_h) || defined(DOXYGEN_RUNNING) 169 DECL VBGL(int) VbglGRAlloc(struct VMMDevRequestHeader **ppReq, size_t cbReq, VMMDevRequestType enmReqType);169 DECLR0VBGL(int) VbglR0GRAlloc(struct VMMDevRequestHeader **ppReq, size_t cbReq, VMMDevRequestType enmReqType); 170 170 # else 171 DECL VBGL(int) VbglGRAlloc(struct VMMDevRequestHeader **ppReq, size_t cbReq, int32_t enmReqType);171 DECLR0VBGL(int) VbglR0GRAlloc(struct VMMDevRequestHeader **ppReq, size_t cbReq, int32_t enmReqType); 172 172 # endif 173 173 … … 179 179 * @return VBox status code. 180 180 */ 181 DECL VBGL(int) VbglGRPerform(struct VMMDevRequestHeader *pReq);181 DECLR0VBGL(int) VbglR0GRPerform(struct VMMDevRequestHeader *pReq); 182 182 183 183 /** … … 188 188 * @return VBox status code. 189 189 */ 190 DECL VBGL(void) VbglGRFree(struct VMMDevRequestHeader *pReq);190 DECLR0VBGL(void) VbglR0GRFree(struct VMMDevRequestHeader *pReq); 191 191 192 192 /** … … 200 200 * @return VBox status code. 201 201 */ 202 DECL VBGL(int) VbglGRVerify(const struct VMMDevRequestHeader *pReq, size_t cbReq);202 DECLR0VBGL(int) VbglGR0Verify(const struct VMMDevRequestHeader *pReq, size_t cbReq); 203 203 204 204 /** @} */ … … 328 328 * @return VBox status code. 329 329 */ 330 DECL VBGL(int) VbglR0HGCMInit(void);330 DECLR0VBGL(int) VbglR0HGCMInit(void); 331 331 332 332 /** … … 335 335 * @return VBox status code. 336 336 */ 337 DECL VBGL(int) VbglR0HGCMTerminate(void);337 DECLR0VBGL(int) VbglR0HGCMTerminate(void); 338 338 339 339 /** … … 349 349 * @todo consider baking the client Id into the handle. 350 350 */ 351 DECL VBGL(int) VbglR0HGCMConnect(VBGLHGCMHANDLE *pHandle, const char *pszServiceName, HGCMCLIENTID *pidClient);351 DECLR0VBGL(int) VbglR0HGCMConnect(VBGLHGCMHANDLE *pHandle, const char *pszServiceName, HGCMCLIENTID *pidClient); 352 352 353 353 /** … … 361 361 * @todo consider baking the client Id into the handle. 362 362 */ 363 DECL VBGL(int) VbglR0HGCMDisconnect(VBGLHGCMHANDLE handle, HGCMCLIENTID idClient);363 DECLR0VBGL(int) VbglR0HGCMDisconnect(VBGLHGCMHANDLE handle, HGCMCLIENTID idClient); 364 364 365 365 /** … … 372 372 * @return VBox status code. 373 373 */ 374 DECL VBGL(int) VbglR0HGCMCallRaw(VBGLHGCMHANDLE handle, struct VBGLIOCHGCMCALL*pData, uint32_t cbData);374 DECLR0VBGL(int) VbglR0HGCMCallRaw(VBGLHGCMHANDLE handle, struct VBGLIOCHGCMCALL*pData, uint32_t cbData); 375 375 376 376 /** … … 384 384 * or the HGCM status code (pData->Hdr.rc). 385 385 */ 386 DECL VBGL(int) VbglR0HGCMCall(VBGLHGCMHANDLE handle, struct VBGLIOCHGCMCALL*pData, uint32_t cbData);386 DECLR0VBGL(int) VbglR0HGCMCall(VBGLHGCMHANDLE handle, struct VBGLIOCHGCMCALL*pData, uint32_t cbData); 387 387 388 388 /** … … 396 396 * @return VBox status code. 397 397 */ 398 DECL VBGL(int) VbglR0HGCMCallUserDataRaw(VBGLHGCMHANDLE handle, struct VBGLIOCHGCMCALL*pData, uint32_t cbData);398 DECLR0VBGL(int) VbglR0HGCMCallUserDataRaw(VBGLHGCMHANDLE handle, struct VBGLIOCHGCMCALL*pData, uint32_t cbData); 399 399 400 400 /** @} */ … … 403 403 * @{ */ 404 404 typedef VBGLHGCMHANDLE VBGLCRCTLHANDLE; 405 DECL VBGL(int) VbglR0CrCtlCreate(VBGLCRCTLHANDLE *phCtl);406 DECL VBGL(int) VbglR0CrCtlDestroy(VBGLCRCTLHANDLE hCtl);407 DECL VBGL(int) VbglR0CrCtlConConnect(VBGLCRCTLHANDLE hCtl, HGCMCLIENTID *pidClient);408 DECL VBGL(int) VbglR0CrCtlConDisconnect(VBGLCRCTLHANDLE hCtl, HGCMCLIENTID idClient);405 DECLR0VBGL(int) VbglR0CrCtlCreate(VBGLCRCTLHANDLE *phCtl); 406 DECLR0VBGL(int) VbglR0CrCtlDestroy(VBGLCRCTLHANDLE hCtl); 407 DECLR0VBGL(int) VbglR0CrCtlConConnect(VBGLCRCTLHANDLE hCtl, HGCMCLIENTID *pidClient); 408 DECLR0VBGL(int) VbglR0CrCtlConDisconnect(VBGLCRCTLHANDLE hCtl, HGCMCLIENTID idClient); 409 409 struct VBGLIOCHGCMCALL; 410 DECL VBGL(int) VbglR0CrCtlConCallRaw(VBGLCRCTLHANDLE hCtl, struct VBGLIOCHGCMCALL *pCallInfo, int cbCallInfo);411 DECL VBGL(int) VbglR0CrCtlConCall(VBGLCRCTLHANDLE hCtl, struct VBGLIOCHGCMCALL *pCallInfo, int cbCallInfo);412 DECL VBGL(int) VbglR0CrCtlConCallUserDataRaw(VBGLCRCTLHANDLE hCtl, struct VBGLIOCHGCMCALL *pCallInfo, int cbCallInfo);410 DECLR0VBGL(int) VbglR0CrCtlConCallRaw(VBGLCRCTLHANDLE hCtl, struct VBGLIOCHGCMCALL *pCallInfo, int cbCallInfo); 411 DECLR0VBGL(int) VbglR0CrCtlConCall(VBGLCRCTLHANDLE hCtl, struct VBGLIOCHGCMCALL *pCallInfo, int cbCallInfo); 412 DECLR0VBGL(int) VbglR0CrCtlConCallUserDataRaw(VBGLCRCTLHANDLE hCtl, struct VBGLIOCHGCMCALL *pCallInfo, int cbCallInfo); 413 413 /** @} */ 414 414 … … 423 423 * @returns VBox status code. 424 424 */ 425 DECL VBGL(int) VbglPhysHeapInit(void);425 DECLR0VBGL(int) VbglR0PhysHeapInit(void); 426 426 427 427 /** 428 428 * Shutdown the heap. 429 429 */ 430 DECL VBGL(void) VbglPhysHeapTerminate(void);430 DECLR0VBGL(void) VbglR0PhysHeapTerminate(void); 431 431 432 432 /** … … 436 436 * @param cbSize Size of block to be allocated. 437 437 */ 438 DECL VBGL(void *) VbglPhysHeapAlloc(uint32_t cbSize);438 DECLR0VBGL(void *) VbglR0PhysHeapAlloc(uint32_t cbSize); 439 439 440 440 /** … … 450 450 * @returns Physical address of the memory block. 451 451 */ 452 DECL VBGL(uint32_t) VbglPhysHeapGetPhysAddr(void *pv);452 DECLR0VBGL(uint32_t) VbglR0PhysHeapGetPhysAddr(void *pv); 453 453 454 454 /** … … 457 457 * @param pv Virtual address of memory block. 458 458 */ 459 DECL VBGL(void) VbglPhysHeapFree(void *pv);460 461 DECL VBGL(int) VbglQueryVMMDevMemory(struct VMMDevMemory **ppVMMDevMemory);459 DECLR0VBGL(void) VbglR0PhysHeapFree(void *pv); 460 461 DECLR0VBGL(int) VbglR0QueryVMMDevMemory(struct VMMDevMemory **ppVMMDevMemory); 462 462 DECLR0VBGL(bool) VbglR0CanUsePhysPageList(void); 463 463 … … 465 465 /** @name Mouse 466 466 * @{ */ 467 DECL VBGL(int) VbglSetMouseNotifyCallback(PFNVBOXGUESTMOUSENOTIFY pfnNotify, void *pvUser);468 DECL VBGL(int) VbglGetMouseStatus(uint32_t *pfFeatures, uint32_t *px, uint32_t *py);469 DECL VBGL(int) VbglSetMouseStatus(uint32_t fFeatures);467 DECLR0VBGL(int) VbglR0SetMouseNotifyCallback(PFNVBOXGUESTMOUSENOTIFY pfnNotify, void *pvUser); 468 DECLR0VBGL(int) VbglR0GetMouseStatus(uint32_t *pfFeatures, uint32_t *px, uint32_t *py); 469 DECLR0VBGL(int) VbglR0SetMouseStatus(uint32_t fFeatures); 470 470 /** @} */ 471 471 # endif /* VBOX_GUEST */ -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPUtils.cpp
r68630 r68654 93 93 VMMDevGetHeightReductionRequest *req = NULL; 94 94 95 rc = Vbgl GRAlloc((VMMDevRequestHeader**)&req, sizeof(VMMDevGetHeightReductionRequest), VMMDevReq_GetHeightReduction);95 rc = VbglR0GRAlloc((VMMDevRequestHeader**)&req, sizeof(VMMDevGetHeightReductionRequest), VMMDevReq_GetHeightReduction); 96 96 if (RT_FAILURE(rc)) 97 97 { … … 100 100 else 101 101 { 102 rc = Vbgl GRPerform(&req->header);102 rc = VbglR0GRPerform(&req->header); 103 103 if (RT_SUCCESS(rc)) 104 104 { … … 109 109 WARN(("ERROR querying height reduction value from VMMDev. rc = %#xrc", rc)); 110 110 } 111 Vbgl GRFree(&req->header);111 VbglR0GRFree(&req->header); 112 112 } 113 113 … … 122 122 VMMDevVideoModeSupportedRequest2 *req2 = NULL; 123 123 124 int rc = Vbgl GRAlloc((VMMDevRequestHeader**)&req2, sizeof(VMMDevVideoModeSupportedRequest2), VMMDevReq_VideoModeSupported2);124 int rc = VbglR0GRAlloc((VMMDevRequestHeader**)&req2, sizeof(VMMDevVideoModeSupportedRequest2), VMMDevReq_VideoModeSupported2); 125 125 if (RT_FAILURE(rc)) 126 126 { … … 137 137 req2->height = height; 138 138 req2->bpp = bpp; 139 rc = Vbgl GRPerform(&req2->header);139 rc = VbglR0GRPerform(&req2->header); 140 140 if (RT_SUCCESS(rc)) 141 141 { … … 157 157 req->bpp = bpp; 158 158 159 rc = Vbgl GRPerform(&req->header);159 rc = VbglR0GRPerform(&req->header); 160 160 if (RT_SUCCESS(rc)) 161 161 { … … 167 167 } 168 168 } 169 Vbgl GRFree(&req2->header);169 VbglR0GRFree(&req2->header); 170 170 } 171 171 … … 182 182 LOGF_ENTER(); 183 183 184 int rc = Vbgl GRAlloc ((VMMDevRequestHeader **)&req, sizeof (VMMDevDisplayChangeRequest2), VMMDevReq_GetDisplayChangeRequest2);184 int rc = VbglR0GRAlloc ((VMMDevRequestHeader **)&req, sizeof (VMMDevDisplayChangeRequest2), VMMDevReq_GetDisplayChangeRequest2); 185 185 186 186 if (RT_FAILURE(rc)) … … 192 192 req->eventAck = 0; 193 193 194 rc = Vbgl GRPerform (&req->header);194 rc = VbglR0GRPerform (&req->header); 195 195 196 196 if (RT_SUCCESS(rc)) … … 212 212 } 213 213 214 Vbgl GRFree (&req->header);214 VbglR0GRFree (&req->header); 215 215 } 216 216 … … 225 225 VMMDevReqMouseStatus *req = NULL; 226 226 227 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_GetMouseStatus);227 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_GetMouseStatus); 228 228 229 229 if (RT_FAILURE(rc)) … … 233 233 else 234 234 { 235 rc = Vbgl GRPerform(&req->header);235 rc = VbglR0GRPerform(&req->header); 236 236 237 237 if (RT_SUCCESS(rc)) … … 257 257 } 258 258 259 Vbgl GRFree(&req->header);259 VbglR0GRFree(&req->header); 260 260 } 261 261 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r68630 r68654 4602 4602 VMMDevVideoSetVisibleRegion *req = NULL; 4603 4603 4604 rc = Vbgl GRAlloc ((VMMDevRequestHeader **)&req,4604 rc = VbglR0GRAlloc ((VMMDevRequestHeader **)&req, 4605 4605 sizeof (VMMDevVideoSetVisibleRegion) + (cRects-1)*sizeof(RTRECT), 4606 4606 VMMDevReq_VideoSetVisibleRegion); … … 4611 4611 memcpy(&req->Rect, pRect, cRects*sizeof(RTRECT)); 4612 4612 4613 rc = Vbgl GRPerform (&req->header);4613 rc = VbglR0GRPerform (&req->header); 4614 4614 AssertRC(rc); 4615 4615 if (RT_SUCCESS(rc)) … … 4617 4617 else 4618 4618 { 4619 WARN(("Vbgl GRPerform failed rc (%d)", rc));4619 WARN(("VbglR0GRPerform failed rc (%d)", rc)); 4620 4620 Status = STATUS_UNSUCCESSFUL; 4621 4621 } … … 4623 4623 else 4624 4624 { 4625 WARN(("Vbgl GRAlloc failed rc (%d)", rc));4625 WARN(("VbglR0GRAlloc failed rc (%d)", rc)); 4626 4626 Status = STATUS_UNSUCCESSFUL; 4627 4627 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp
r68550 r68654 665 665 if (pExt->u.primary.pvReqFlush != NULL) 666 666 { 667 Vbgl GRFree((VMMDevRequestHeader *)pExt->u.primary.pvReqFlush);667 VbglR0GRFree((VMMDevRequestHeader *)pExt->u.primary.pvReqFlush); 668 668 pExt->u.primary.pvReqFlush = NULL; 669 669 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPIOCTL.cpp
r66507 r68654 465 465 466 466 VMMDevVideoSetVisibleRegion *req = NULL; 467 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevVideoSetVisibleRegion) + (cRects-1)*sizeof(RTRECT),467 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevVideoSetVisibleRegion) + (cRects-1)*sizeof(RTRECT), 468 468 VMMDevReq_VideoSetVisibleRegion); 469 469 … … 472 472 req->cRect = cRects; 473 473 memcpy(&req->Rect, pRects, cRects*sizeof(RTRECT)); 474 rc = Vbgl GRPerform(&req->header);474 rc = VbglR0GRPerform(&req->header); 475 475 476 476 if (RT_SUCCESS(rc)) … … 479 479 } 480 480 481 Vbgl GRFree(&req->header);482 } 483 else 484 { 485 WARN(("Vbgl GRAlloc rc = %#xrc", rc));481 VbglR0GRFree(&req->header); 482 } 483 else 484 { 485 WARN(("VbglR0GRAlloc rc = %#xrc", rc)); 486 486 } 487 487 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPInternal.cpp
r65381 r68654 201 201 if (req) 202 202 { 203 int rc = Vbgl GRPerform (&req->header);203 int rc = VbglR0GRPerform (&req->header); 204 204 205 205 if (RT_FAILURE(rc)) … … 219 219 VMMDevMemory *pVMMDevMemory = NULL; 220 220 221 rc = Vbgl QueryVMMDevMemory(&pVMMDevMemory);221 rc = VbglR0QueryVMMDevMemory(&pVMMDevMemory); 222 222 if (RT_FAILURE(rc)) 223 223 { 224 WARN(("Vbgl QueryVMMDevMemory rc = %#xrc", rc));224 WARN(("VbglR0QueryVMMDevMemory rc = %#xrc", rc)); 225 225 LOGF_LEAVE(); 226 226 return rc; … … 252 252 VMMDevVideoAccelFlush *req = NULL; 253 253 254 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevVideoAccelFlush), VMMDevReq_VideoAccelFlush);254 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevVideoAccelFlush), VMMDevReq_VideoAccelFlush); 255 255 256 256 if (RT_SUCCESS(rc)) … … 260 260 else 261 261 { 262 WARN(("Vbgl GRAlloc(VMMDevVideoAccelFlush) rc = %#xrc", rc));262 WARN(("VbglR0GRAlloc(VMMDevVideoAccelFlush) rc = %#xrc", rc)); 263 263 LOGF_LEAVE(); 264 264 return rc; … … 269 269 270 270 VMMDevVideoAccelEnable *req = NULL; 271 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevVideoAccelEnable), VMMDevReq_VideoAccelEnable);271 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevVideoAccelEnable), VMMDevReq_VideoAccelEnable); 272 272 273 273 if (RT_SUCCESS(rc)) … … 277 277 req->fu32Status = 0; 278 278 279 rc = Vbgl GRPerform(&req->header);279 rc = VbglR0GRPerform(&req->header); 280 280 if (RT_SUCCESS(rc)) 281 281 { … … 306 306 req->fu32Status = 0; 307 307 308 Vbgl GRPerform(&req->header);308 VbglR0GRPerform(&req->header); 309 309 310 310 rc = VERR_NOT_SUPPORTED; … … 316 316 } 317 317 318 Vbgl GRFree(&req->header);318 VbglR0GRFree(&req->header); 319 319 } 320 320 else 321 321 { 322 WARN(("Vbgl GRAlloc(VMMDevVideoAccelEnable) rc = %#xrc", rc));322 WARN(("VbglR0GRAlloc(VMMDevVideoAccelEnable) rc = %#xrc", rc)); 323 323 } 324 324 -
trunk/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp
r68636 r68654 1465 1465 if (pReq) 1466 1466 { 1467 int rc = Vbgl GRPerform (&pReq->header);1467 int rc = VbglR0GRPerform (&pReq->header); 1468 1468 if (RT_SUCCESS(rc)) 1469 1469 { … … 1507 1507 if (pReq) 1508 1508 { 1509 int rc = Vbgl GRPerform(&pReq->header);1509 int rc = VbglR0GRPerform(&pReq->header); 1510 1510 if (RT_SUCCESS(rc)) 1511 1511 { … … 2142 2142 VMMDevReqMouseStatus *pReq = NULL; 2143 2143 2144 rcVBox = Vbgl GRAlloc((VMMDevRequestHeader**)&pReq, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus);2144 rcVBox = VbglR0GRAlloc((VMMDevRequestHeader**)&pReq, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus); 2145 2145 if (RT_SUCCESS(rcVBox)) 2146 2146 { … … 2149 2149 pReq->pointerXPos = 0; 2150 2150 pReq->pointerYPos = 0; 2151 rcVBox = Vbgl GRPerform(&pReq->header);2151 rcVBox = VbglR0GRPerform(&pReq->header); 2152 2152 if (RT_FAILURE(rcVBox)) 2153 2153 Log(("VBoxMouseNT::DriverEntry: ERROR communicating new mouse capabilities to VMMDev. rc = %Rrc\n", rcVBox)); -
trunk/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp
r68633 r68654 111 111 if (g_ctx.fIsNewProtEnabled) 112 112 return true; 113 int rc = Vbgl SetMouseNotifyCallback(vboxNewProtMouseEventCb, NULL);113 int rc = VbglR0SetMouseNotifyCallback(vboxNewProtMouseEventCb, NULL); 114 114 if (RT_SUCCESS(rc)) 115 115 { … … 118 118 return true; 119 119 } 120 WARN(("Vbgl SetMouseNotifyCallback failed: %Rrc", rc));120 WARN(("VbglR0SetMouseNotifyCallback failed: %Rrc", rc)); 121 121 return false; 122 122 } … … 133 133 { 134 134 g_ctx.fIsNewProtEnabled = false; 135 int rc = Vbgl SetMouseNotifyCallback(NULL, NULL);135 int rc = VbglR0SetMouseNotifyCallback(NULL, NULL); 136 136 if (RT_FAILURE(rc)) 137 WARN(("Vbgl SetMouseNotifyCallback failed: %Rrc", rc));137 WARN(("VbglR0SetMouseNotifyCallback failed: %Rrc", rc)); 138 138 } 139 139 } … … 202 202 if (pDevExt->pSCReq) 203 203 { 204 int rc = Vbgl GRPerform(&pDevExt->pSCReq->header);204 int rc = VbglR0GRPerform(&pDevExt->pSCReq->header); 205 205 if (RT_SUCCESS(rc)) 206 206 { … … 225 225 else 226 226 { 227 WARN(("Vbgl GRPerform failed with rc=%Rrc", rc));227 WARN(("VbglR0GRPerform failed with rc=%Rrc", rc)); 228 228 } 229 229 } … … 380 380 { 381 381 VMMDevReqMouseStatus *req = NULL; 382 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus);382 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus); 383 383 if (RT_SUCCESS(rc)) 384 384 { … … 390 390 req->pointerYPos = 0; 391 391 392 rc = Vbgl GRPerform(&req->header);392 rc = VbglR0GRPerform(&req->header); 393 393 if (RT_SUCCESS(rc)) 394 394 InterlockedExchange(&g_ctx.fHostInformed, TRUE); 395 395 else 396 WARN(("Vbgl GRPerform failed with rc=%Rrc", rc));397 398 Vbgl GRFree(&req->header);396 WARN(("VbglR0GRPerform failed with rc=%Rrc", rc)); 397 398 VbglR0GRFree(&req->header); 399 399 } 400 400 else 401 WARN(("Vbgl GRAlloc failed with rc=%Rrc", rc));401 WARN(("VbglR0GRAlloc failed with rc=%Rrc", rc)); 402 402 } 403 403 … … 406 406 { 407 407 VMMDevReqMouseStatus *req = NULL; 408 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_GetMouseStatus);408 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_GetMouseStatus); 409 409 if (RT_SUCCESS(rc)) 410 410 InterlockedExchangePointer((PVOID volatile *)&pDevExt->pSCReq, req); 411 411 else 412 412 { 413 WARN(("Vbgl GRAlloc for service callback failed with rc=%Rrc", rc));413 WARN(("VbglR0GRAlloc for service callback failed with rc=%Rrc", rc)); 414 414 } 415 415 } … … 430 430 { 431 431 VMMDevReqMouseStatus *req = NULL; 432 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus);432 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus); 433 433 if (RT_SUCCESS(rc)) 434 434 { … … 437 437 req->pointerYPos = 0; 438 438 439 rc = Vbgl GRPerform(&req->header);439 rc = VbglR0GRPerform(&req->header); 440 440 if (RT_FAILURE(rc)) 441 WARN(("Vbgl GRPerform failed with rc=%Rrc", rc));442 443 Vbgl GRFree(&req->header);441 WARN(("VbglR0GRPerform failed with rc=%Rrc", rc)); 442 443 VbglR0GRFree(&req->header); 444 444 } 445 445 else 446 WARN(("Vbgl GRAlloc failed with rc=%Rrc", rc));446 WARN(("VbglR0GRAlloc failed with rc=%Rrc", rc)); 447 447 448 448 InterlockedExchange(&g_ctx.fHostInformed, FALSE); … … 464 464 KeReleaseSpinLock(&g_ctx.SyncLock, Irql); 465 465 if (pSCReq) 466 Vbgl GRFree(&pSCReq->header);466 VbglR0GRFree(&pSCReq->header); 467 467 468 468 /* -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
r68589 r68654 441 441 static int __init vgdrvLinuxCreateInputDevice(void) 442 442 { 443 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&g_pMouseStatusReq, sizeof(*g_pMouseStatusReq), VMMDevReq_GetMouseStatus);443 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&g_pMouseStatusReq, sizeof(*g_pMouseStatusReq), VMMDevReq_GetMouseStatus); 444 444 if (RT_SUCCESS(rc)) 445 445 { … … 479 479 else 480 480 rc = -ENOMEM; 481 Vbgl GRFree(&g_pMouseStatusReq->header);481 VbglR0GRFree(&g_pMouseStatusReq->header); 482 482 g_pMouseStatusReq = NULL; 483 483 } … … 493 493 static void vgdrvLinuxTermInputDevice(void) 494 494 { 495 Vbgl GRFree(&g_pMouseStatusReq->header);495 VbglR0GRFree(&g_pMouseStatusReq->header); 496 496 g_pMouseStatusReq = NULL; 497 497 … … 1031 1031 g_pMouseStatusReq->pointerXPos = 0; 1032 1032 g_pMouseStatusReq->pointerYPos = 0; 1033 rc = Vbgl GRPerform(&g_pMouseStatusReq->header);1033 rc = VbglR0GRPerform(&g_pMouseStatusReq->header); 1034 1034 if (RT_SUCCESS(rc)) 1035 1035 { -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win-pnp.cpp
r62853 r68654 486 486 /* Tell the VMM that we no longer support mouse pointer integration. */ 487 487 VMMDevReqMouseStatus *pReq = NULL; 488 int vrc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof (VMMDevReqMouseStatus),488 int vrc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof (VMMDevReqMouseStatus), 489 489 VMMDevReq_SetMouseStatus); 490 490 if (RT_SUCCESS(vrc)) … … 494 494 pReq->pointerYPos = 0; 495 495 496 vrc = Vbgl GRPerform(&pReq->header);496 vrc = VbglR0GRPerform(&pReq->header); 497 497 if (RT_FAILURE(vrc)) 498 498 { … … 500 500 } 501 501 502 Vbgl GRFree(&pReq->header);502 VbglR0GRFree(&pReq->header); 503 503 } 504 504 … … 523 523 pReq->powerState = VMMDevPowerState_PowerOff; 524 524 525 vrc = Vbgl GRPerform(&pReq->header);525 vrc = VbglR0GRPerform(&pReq->header); 526 526 } 527 527 if (RT_FAILURE(vrc)) -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp
r68554 r68654 451 451 if (NT_SUCCESS(rcNt)) 452 452 { 453 int vrc = Vbgl GRAlloc((VMMDevRequestHeader **)&pDevExt->pPowerStateRequest,453 int vrc = VbglR0GRAlloc((VMMDevRequestHeader **)&pDevExt->pPowerStateRequest, 454 454 sizeof(VMMDevPowerStateRequest), VMMDevReq_SetPowerStatus); 455 455 if (RT_FAILURE(vrc)) … … 942 942 pReq->powerState = VMMDevPowerState_PowerOff; 943 943 944 int rc = Vbgl GRPerform(&pReq->header);944 int rc = VbglR0GRPerform(&pReq->header); 945 945 if (RT_FAILURE(rc)) 946 946 LogFunc(("Error performing request to VMMDev, rc=%Rrc\n", rc)); -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r68638 r68654 152 152 */ 153 153 VMMDevReqHypervisorInfo *pReq; 154 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevReqHypervisorInfo), VMMDevReq_GetHypervisorInfo);154 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevReqHypervisorInfo), VMMDevReq_GetHypervisorInfo); 155 155 if (RT_FAILURE(rc)) 156 156 return rc; 157 157 pReq->hypervisorStart = 0; 158 158 pReq->hypervisorSize = 0; 159 rc = Vbgl GRPerform(&pReq->header);159 rc = VbglR0GRPerform(&pReq->header); 160 160 if (RT_FAILURE(rc)) /* this shouldn't happen! */ 161 161 { 162 Vbgl GRFree(&pReq->header);162 VbglR0GRFree(&pReq->header); 163 163 return rc; 164 164 } … … 242 242 AssertMsg(RT_ALIGN_32(pReq->hypervisorStart, _4M) == pReq->hypervisorStart, ("%#x\n", pReq->hypervisorStart)); 243 243 244 rc = Vbgl GRPerform(&pReq->header);244 rc = VbglR0GRPerform(&pReq->header); 245 245 if (RT_SUCCESS(rc)) 246 246 { … … 266 266 LogRel(("VBoxGuest: Warning: failed to reserve %#d of memory for guest mappings.\n", cbHypervisor)); 267 267 } 268 Vbgl GRFree(&pReq->header);268 VbglR0GRFree(&pReq->header); 269 269 270 270 /* … … 289 289 */ 290 290 VMMDevReqHypervisorInfo *pReq; 291 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevReqHypervisorInfo), VMMDevReq_SetHypervisorInfo);291 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevReqHypervisorInfo), VMMDevReq_SetHypervisorInfo); 292 292 if (RT_SUCCESS(rc)) 293 293 { 294 294 pReq->hypervisorStart = 0; 295 295 pReq->hypervisorSize = 0; 296 rc = Vbgl GRPerform(&pReq->header);297 Vbgl GRFree(&pReq->header);296 rc = VbglR0GRPerform(&pReq->header); 297 VbglR0GRFree(&pReq->header); 298 298 } 299 299 if (RT_SUCCESS(rc)) … … 324 324 VMMDevReportGuestInfo2 *pReqInfo2 = NULL; 325 325 VMMDevReportGuestInfo *pReqInfo1 = NULL; 326 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReqInfo2, sizeof (VMMDevReportGuestInfo2), VMMDevReq_ReportGuestInfo2);327 Log(("vgdrvReportGuestInfo: Vbgl GRAlloc VMMDevReportGuestInfo2 completed with rc=%Rrc\n", rc));326 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReqInfo2, sizeof (VMMDevReportGuestInfo2), VMMDevReq_ReportGuestInfo2); 327 Log(("vgdrvReportGuestInfo: VbglR0GRAlloc VMMDevReportGuestInfo2 completed with rc=%Rrc\n", rc)); 328 328 if (RT_SUCCESS(rc)) 329 329 { … … 335 335 RTStrCopy(pReqInfo2->guestInfo.szName, sizeof(pReqInfo2->guestInfo.szName), VBOX_VERSION_STRING); 336 336 337 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReqInfo1, sizeof (VMMDevReportGuestInfo), VMMDevReq_ReportGuestInfo);338 Log(("vgdrvReportGuestInfo: Vbgl GRAlloc VMMDevReportGuestInfo completed with rc=%Rrc\n", rc));337 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReqInfo1, sizeof (VMMDevReportGuestInfo), VMMDevReq_ReportGuestInfo); 338 Log(("vgdrvReportGuestInfo: VbglR0GRAlloc VMMDevReportGuestInfo completed with rc=%Rrc\n", rc)); 339 339 if (RT_SUCCESS(rc)) 340 340 { … … 350 350 * if not supported by the VMMDev (message ordering requirement). 351 351 */ 352 rc = Vbgl GRPerform(&pReqInfo2->header);353 Log(("vgdrvReportGuestInfo: Vbgl GRPerform VMMDevReportGuestInfo2 completed with rc=%Rrc\n", rc));352 rc = VbglR0GRPerform(&pReqInfo2->header); 353 Log(("vgdrvReportGuestInfo: VbglR0GRPerform VMMDevReportGuestInfo2 completed with rc=%Rrc\n", rc)); 354 354 if (RT_SUCCESS(rc)) 355 355 { 356 rc = Vbgl GRPerform(&pReqInfo1->header);357 Log(("vgdrvReportGuestInfo: Vbgl GRPerform VMMDevReportGuestInfo completed with rc=%Rrc\n", rc));356 rc = VbglR0GRPerform(&pReqInfo1->header); 357 Log(("vgdrvReportGuestInfo: VbglR0GRPerform VMMDevReportGuestInfo completed with rc=%Rrc\n", rc)); 358 358 } 359 359 else if ( rc == VERR_NOT_SUPPORTED 360 360 || rc == VERR_NOT_IMPLEMENTED) 361 361 { 362 rc = Vbgl GRPerform(&pReqInfo1->header);363 Log(("vgdrvReportGuestInfo: Vbgl GRPerform VMMDevReportGuestInfo completed with rc=%Rrc\n", rc));362 rc = VbglR0GRPerform(&pReqInfo1->header); 363 Log(("vgdrvReportGuestInfo: VbglR0GRPerform VMMDevReportGuestInfo completed with rc=%Rrc\n", rc)); 364 364 if (RT_SUCCESS(rc)) 365 365 { 366 rc = Vbgl GRPerform(&pReqInfo2->header);367 Log(("vgdrvReportGuestInfo: Vbgl GRPerform VMMDevReportGuestInfo2 completed with rc=%Rrc\n", rc));366 rc = VbglR0GRPerform(&pReqInfo2->header); 367 Log(("vgdrvReportGuestInfo: VbglR0GRPerform VMMDevReportGuestInfo2 completed with rc=%Rrc\n", rc)); 368 368 if (rc == VERR_NOT_IMPLEMENTED) 369 369 rc = VINF_SUCCESS; 370 370 } 371 371 } 372 Vbgl GRFree(&pReqInfo1->header);373 } 374 Vbgl GRFree(&pReqInfo2->header);372 VbglR0GRFree(&pReqInfo1->header); 373 } 374 VbglR0GRFree(&pReqInfo2->header); 375 375 } 376 376 … … 391 391 */ 392 392 VMMDevReportGuestStatus *pReq2 = NULL; 393 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq2, sizeof(*pReq2), VMMDevReq_ReportGuestStatus);394 Log(("vgdrvReportDriverStatus: Vbgl GRAlloc VMMDevReportGuestStatus completed with rc=%Rrc\n", rc));393 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq2, sizeof(*pReq2), VMMDevReq_ReportGuestStatus); 394 Log(("vgdrvReportDriverStatus: VbglR0GRAlloc VMMDevReportGuestStatus completed with rc=%Rrc\n", rc)); 395 395 if (RT_SUCCESS(rc)) 396 396 { … … 400 400 : VBoxGuestFacilityStatus_Inactive; 401 401 pReq2->guestStatus.flags = 0; 402 rc = Vbgl GRPerform(&pReq2->header);403 Log(("vgdrvReportDriverStatus: Vbgl GRPerform VMMDevReportGuestStatus completed with fActive=%d, rc=%Rrc\n",402 rc = VbglR0GRPerform(&pReq2->header); 403 Log(("vgdrvReportDriverStatus: VbglR0GRPerform VMMDevReportGuestStatus completed with fActive=%d, rc=%Rrc\n", 404 404 fActive ? 1 : 0, rc)); 405 405 if (rc == VERR_NOT_IMPLEMENTED) /* Compatibility with older hosts. */ 406 406 rc = VINF_SUCCESS; 407 Vbgl GRFree(&pReq2->header);407 VbglR0GRFree(&pReq2->header); 408 408 } 409 409 … … 440 440 pReq->cPages = VMMDEV_MEMORY_BALLOON_CHUNK_PAGES; 441 441 442 rc = Vbgl GRPerform(&pReq->header);442 rc = VbglR0GRPerform(&pReq->header); 443 443 if (RT_FAILURE(rc)) 444 LogRel(("vgdrvBalloonInflate: Vbgl GRPerform failed. rc=%Rrc\n", rc));444 LogRel(("vgdrvBalloonInflate: VbglR0GRPerform failed. rc=%Rrc\n", rc)); 445 445 return rc; 446 446 } … … 472 472 pReq->cPages = VMMDEV_MEMORY_BALLOON_CHUNK_PAGES; 473 473 474 rc = Vbgl GRPerform(&pReq->header);474 rc = VbglR0GRPerform(&pReq->header); 475 475 if (RT_FAILURE(rc)) 476 476 { 477 LogRel(("vgdrvBalloonDeflate: Vbgl GRPerform failed. rc=%Rrc\n", rc));477 LogRel(("vgdrvBalloonDeflate: VbglR0GRPerform failed. rc=%Rrc\n", rc)); 478 478 return rc; 479 479 } … … 532 532 } 533 533 534 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, g_cbChangeMemBalloonReq, VMMDevReq_ChangeMemBalloon);534 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, g_cbChangeMemBalloonReq, VMMDevReq_ChangeMemBalloon); 535 535 if (RT_FAILURE(rc)) 536 536 return rc; … … 585 585 } 586 586 587 Vbgl GRFree(&pReq->header);587 VbglR0GRFree(&pReq->header); 588 588 } 589 589 … … 681 681 * Try inflate / default the balloon as requested. 682 682 */ 683 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, g_cbChangeMemBalloonReq, VMMDevReq_ChangeMemBalloon);683 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, g_cbChangeMemBalloonReq, VMMDevReq_ChangeMemBalloon); 684 684 if (RT_FAILURE(rc)) 685 685 return rc; … … 711 711 } 712 712 713 Vbgl GRFree(&pReq->header);713 VbglR0GRFree(&pReq->header); 714 714 return rc; 715 715 } … … 734 734 { 735 735 VMMDevChangeMemBalloon *pReq; 736 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, g_cbChangeMemBalloonReq, VMMDevReq_ChangeMemBalloon);736 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, g_cbChangeMemBalloonReq, VMMDevReq_ChangeMemBalloon); 737 737 if (RT_SUCCESS(rc)) 738 738 { … … 750 750 pDevExt->MemBalloon.cChunks--; 751 751 } 752 Vbgl GRFree(&pReq->header);752 VbglR0GRFree(&pReq->header); 753 753 } 754 754 else … … 782 782 if (pDevExt->pReqGuestHeartbeat) 783 783 { 784 rc = Vbgl GRPerform(pDevExt->pReqGuestHeartbeat);785 Log3(("vgdrvHeartbeatSend: Vbgl GRPerform vgdrvHeartbeatSend completed with rc=%Rrc\n", rc));784 rc = VbglR0GRPerform(pDevExt->pReqGuestHeartbeat); 785 Log3(("vgdrvHeartbeatSend: VbglR0GRPerform vgdrvHeartbeatSend completed with rc=%Rrc\n", rc)); 786 786 } 787 787 else … … 819 819 { 820 820 VMMDevReqHeartbeat *pReq; 821 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_HeartbeatConfigure);822 Log(("vgdrvHeartbeatHostConfigure: Vbgl GRAlloc vgdrvHeartbeatHostConfigure completed with rc=%Rrc\n", rc));821 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_HeartbeatConfigure); 822 Log(("vgdrvHeartbeatHostConfigure: VbglR0GRAlloc vgdrvHeartbeatHostConfigure completed with rc=%Rrc\n", rc)); 823 823 if (RT_SUCCESS(rc)) 824 824 { 825 825 pReq->fEnabled = fEnabled; 826 826 pReq->cNsInterval = 0; 827 rc = Vbgl GRPerform(&pReq->header);828 Log(("vgdrvHeartbeatHostConfigure: Vbgl GRPerform vgdrvHeartbeatHostConfigure completed with rc=%Rrc\n", rc));827 rc = VbglR0GRPerform(&pReq->header); 828 Log(("vgdrvHeartbeatHostConfigure: VbglR0GRPerform vgdrvHeartbeatHostConfigure completed with rc=%Rrc\n", rc)); 829 829 pDevExt->cNsHeartbeatInterval = pReq->cNsInterval; 830 Vbgl GRFree(&pReq->header);830 VbglR0GRFree(&pReq->header); 831 831 } 832 832 return rc; … … 855 855 /* 856 856 * Preallocate the request to use it from the timer callback because: 857 * 1) on Windows Vbgl GRAlloc must be called at IRQL <= APC_LEVEL857 * 1) on Windows VbglR0GRAlloc must be called at IRQL <= APC_LEVEL 858 858 * and the timer callback runs at DISPATCH_LEVEL; 859 859 * 2) avoid repeated allocations. 860 860 */ 861 rc = Vbgl GRAlloc(&pDevExt->pReqGuestHeartbeat, sizeof(*pDevExt->pReqGuestHeartbeat), VMMDevReq_GuestHeartbeat);861 rc = VbglR0GRAlloc(&pDevExt->pReqGuestHeartbeat, sizeof(*pDevExt->pReqGuestHeartbeat), VMMDevReq_GuestHeartbeat); 862 862 if (RT_SUCCESS(rc)) 863 863 { … … 877 877 LogRel(("vgdrvHeartbeatInit: Failed to create heartbeat timer: %Rrc\n", rc)); 878 878 879 Vbgl GRFree(pDevExt->pReqGuestHeartbeat);879 VbglR0GRFree(pDevExt->pReqGuestHeartbeat); 880 880 pDevExt->pReqGuestHeartbeat = NULL; 881 881 } 882 882 else 883 LogRel(("vgdrvHeartbeatInit: Vbgl GRAlloc(VMMDevReq_GuestHeartbeat): %Rrc\n", rc));883 LogRel(("vgdrvHeartbeatInit: VbglR0GRAlloc(VMMDevReq_GuestHeartbeat): %Rrc\n", rc)); 884 884 885 885 LogRel(("vgdrvHeartbeatInit: Failed to set up the timer, guest heartbeat is disabled\n")); … … 1063 1063 * made by the VMM. 1064 1064 */ 1065 rc = Vbgl InitPrimary(pDevExt->IOPortBase, (VMMDevMemory *)pDevExt->pVMMDevMemory);1065 rc = VbglR0InitPrimary(pDevExt->IOPortBase, (VMMDevMemory *)pDevExt->pVMMDevMemory); 1066 1066 if (RT_SUCCESS(rc)) 1067 1067 { 1068 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pDevExt->pIrqAckEvents, sizeof(VMMDevEvents), VMMDevReq_AcknowledgeEvents);1068 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pDevExt->pIrqAckEvents, sizeof(VMMDevEvents), VMMDevReq_AcknowledgeEvents); 1069 1069 if (RT_SUCCESS(rc)) 1070 1070 { 1071 pDevExt->PhysIrqAckEvents = Vbgl PhysHeapGetPhysAddr(pDevExt->pIrqAckEvents);1071 pDevExt->PhysIrqAckEvents = VbglR0PhysHeapGetPhysAddr(pDevExt->pIrqAckEvents); 1072 1072 Assert(pDevExt->PhysIrqAckEvents != 0); 1073 1073 … … 1113 1113 } 1114 1114 else 1115 LogRel(("VGDrvCommonInitDevExt: VBoxReportGuestInfo failed: rc=%Rrc\n", rc));1116 Vbgl GRFree((VMMDevRequestHeader *)pDevExt->pIrqAckEvents);1115 LogRel(("VGDrvCommonInitDevExt: vgdrvReportGuestInfo failed: rc=%Rrc\n", rc)); 1116 VbglR0GRFree((VMMDevRequestHeader *)pDevExt->pIrqAckEvents); 1117 1117 } 1118 1118 else 1119 LogRel(("VGDrvCommonInitDevExt: V BoxGRAlloc failed: rc=%Rrc\n", rc));1119 LogRel(("VGDrvCommonInitDevExt: VbglR0GRAlloc failed: rc=%Rrc\n", rc)); 1120 1120 1121 1121 VbglR0TerminatePrimary(); 1122 1122 } 1123 1123 else 1124 LogRel(("VGDrvCommonInitDevExt: Vbgl Initfailed: rc=%Rrc\n", rc));1124 LogRel(("VGDrvCommonInitDevExt: VbglR0InitPrimary failed: rc=%Rrc\n", rc)); 1125 1125 1126 1126 rc2 = RTSemFastMutexDestroy(pDevExt->MemBalloon.hMtx); AssertRC(rc2); … … 1180 1180 } 1181 1181 1182 Vbgl GRFree(pDevExt->pReqGuestHeartbeat);1182 VbglR0GRFree(pDevExt->pReqGuestHeartbeat); 1183 1183 pDevExt->pReqGuestHeartbeat = NULL; 1184 1184 … … 2092 2092 return VERR_INVALID_PARAMETER; 2093 2093 } 2094 rc = VbglGR Verify(pReqHdr, cbData);2094 rc = VbglGR0Verify(pReqHdr, cbData); 2095 2095 if (RT_FAILURE(rc)) 2096 2096 { … … 2114 2114 * it does makes things a bit simpler wrt to phys address.) 2115 2115 */ 2116 rc = Vbgl GRAlloc(&pReqCopy, cbReq, enmType);2116 rc = VbglR0GRAlloc(&pReqCopy, cbReq, enmType); 2117 2117 if (RT_FAILURE(rc)) 2118 2118 { … … 2128 2128 pSession->u32MousePosChangedSeq = ASMAtomicUoReadU32(&pDevExt->u32MousePosChangedSeq); 2129 2129 2130 rc = Vbgl GRPerform(pReqCopy);2130 rc = VbglR0GRPerform(pReqCopy); 2131 2131 if ( RT_SUCCESS(rc) 2132 2132 && RT_SUCCESS(pReqCopy->rc)) … … 2139 2139 } 2140 2140 else if (RT_FAILURE(rc)) 2141 Log(("VBOXGUEST_IOCTL_VMMREQUEST: Vbgl GRPerform - rc=%Rrc!\n", rc));2141 Log(("VBOXGUEST_IOCTL_VMMREQUEST: VbglR0GRPerform - rc=%Rrc!\n", rc)); 2142 2142 else 2143 2143 { … … 2146 2146 } 2147 2147 2148 Vbgl GRFree(pReqCopy);2148 VbglR0GRFree(pReqCopy); 2149 2149 return rc; 2150 2150 } … … 2472 2472 if (pDevExt->MemBalloon.pOwner == pSession) 2473 2473 { 2474 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevGetMemBalloonChangeRequest), VMMDevReq_GetMemBalloonChangeRequest);2474 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevGetMemBalloonChangeRequest), VMMDevReq_GetMemBalloonChangeRequest); 2475 2475 if (RT_SUCCESS(rc)) 2476 2476 { … … 2481 2481 */ 2482 2482 pReq->eventAck = VMMDEV_EVENT_BALLOON_CHANGE_REQUEST; 2483 rc = Vbgl GRPerform(&pReq->header);2483 rc = VbglR0GRPerform(&pReq->header); 2484 2484 if (RT_SUCCESS(rc)) 2485 2485 { … … 2501 2501 } 2502 2502 else 2503 LogRel(("VBGL_IOCTL_CHECK_BALLOON: Vbgl GRPerform failed. rc=%Rrc\n", rc));2504 Vbgl GRFree(&pReq->header);2503 LogRel(("VBGL_IOCTL_CHECK_BALLOON: VbglR0GRPerform failed. rc=%Rrc\n", rc)); 2504 VbglR0GRFree(&pReq->header); 2505 2505 } 2506 2506 } … … 2586 2586 RT_NOREF1(pDevExt); 2587 2587 2588 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_WriteCoreDump);2588 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_WriteCoreDump); 2589 2589 if (RT_SUCCESS(rc)) 2590 2590 { 2591 2591 pReq->fFlags = pInfo->u.In.fFlags; 2592 rc = Vbgl GRPerform(&pReq->header);2592 rc = VbglR0GRPerform(&pReq->header); 2593 2593 if (RT_FAILURE(rc)) 2594 Log(("VBOXGUEST_IOCTL_WRITE_CORE_DUMP: Vbgl GRPerform failed, rc=%Rrc!\n", rc));2595 2596 Vbgl GRFree(&pReq->header);2594 Log(("VBOXGUEST_IOCTL_WRITE_CORE_DUMP: VbglR0GRPerform failed, rc=%Rrc!\n", rc)); 2595 2596 VbglR0GRFree(&pReq->header); 2597 2597 } 2598 2598 else … … 2741 2741 { 2742 2742 VMMDevCtlGuestFilterMask *pReq; 2743 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_CtlGuestFilterMask);2743 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_CtlGuestFilterMask); 2744 2744 if (RT_SUCCESS(rc)) 2745 2745 { 2746 2746 pReq->u32NotMask = UINT32_MAX & ~fFixedEvents; 2747 2747 pReq->u32OrMask = fFixedEvents; 2748 rc = Vbgl GRPerform(&pReq->header);2748 rc = VbglR0GRPerform(&pReq->header); 2749 2749 if (RT_FAILURE(rc)) 2750 2750 LogRelFunc(("failed with rc=%Rrc\n", rc)); 2751 Vbgl GRFree(&pReq->header);2751 VbglR0GRFree(&pReq->header); 2752 2752 } 2753 2753 RT_NOREF1(pDevExt); … … 2785 2785 * Preallocate a request buffer so we can do all in one go without leaving the spinlock. 2786 2786 */ 2787 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_CtlGuestFilterMask);2787 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_CtlGuestFilterMask); 2788 2788 if (RT_SUCCESS(rc)) 2789 2789 { /* nothing */ } 2790 2790 else if (!fSessionTermination) 2791 2791 { 2792 LogRel(("vgdrvSetSessionFilterMask: Vbgl GRAlloc failure: %Rrc\n", rc));2792 LogRel(("vgdrvSetSessionFilterMask: VbglR0GRAlloc failure: %Rrc\n", rc)); 2793 2793 return rc; 2794 2794 } … … 2832 2832 pDevExt->fEventFilterHost = pReq->u32OrMask; 2833 2833 pReq->u32NotMask = ~pReq->u32OrMask; 2834 rc = Vbgl GRPerform(&pReq->header);2834 rc = VbglR0GRPerform(&pReq->header); 2835 2835 if (RT_FAILURE(rc)) 2836 2836 { … … 2855 2855 RTSpinlockRelease(pDevExt->SessionSpinlock); 2856 2856 if (pReq) 2857 Vbgl GRFree(&pReq->header);2857 VbglR0GRFree(&pReq->header); 2858 2858 return rc; 2859 2859 } … … 2892 2892 { 2893 2893 VMMDevReqMouseStatus *pReq; 2894 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetMouseStatus);2894 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetMouseStatus); 2895 2895 if (RT_SUCCESS(rc)) 2896 2896 { … … 2898 2898 pReq->pointerXPos = 0; 2899 2899 pReq->pointerYPos = 0; 2900 rc = Vbgl GRPerform(&pReq->header);2900 rc = VbglR0GRPerform(&pReq->header); 2901 2901 if (RT_FAILURE(rc)) 2902 2902 LogRelFunc(("failed with rc=%Rrc\n", rc)); 2903 Vbgl GRFree(&pReq->header);2903 VbglR0GRFree(&pReq->header); 2904 2904 } 2905 2905 RT_NOREF1(pDevExt); … … 2937 2937 * Preallocate a request buffer so we can do all in one go without leaving the spinlock. 2938 2938 */ 2939 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetMouseStatus);2939 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetMouseStatus); 2940 2940 if (RT_SUCCESS(rc)) 2941 2941 { /* nothing */ } 2942 2942 else if (!fSessionTermination) 2943 2943 { 2944 LogRel(("vgdrvSetSessionMouseStatus: Vbgl GRAlloc failure: %Rrc\n", rc));2944 LogRel(("vgdrvSetSessionMouseStatus: VbglR0GRAlloc failure: %Rrc\n", rc)); 2945 2945 return rc; 2946 2946 } … … 2983 2983 pReq->pointerXPos = 0; 2984 2984 pReq->pointerYPos = 0; 2985 rc = Vbgl GRPerform(&pReq->header);2985 rc = VbglR0GRPerform(&pReq->header); 2986 2986 if (RT_FAILURE(rc)) 2987 2987 { … … 3006 3006 RTSpinlockRelease(pDevExt->SessionSpinlock); 3007 3007 if (pReq) 3008 Vbgl GRFree(&pReq->header);3008 VbglR0GRFree(&pReq->header); 3009 3009 return rc; 3010 3010 } … … 3090 3090 { 3091 3091 VMMDevReqGuestCapabilities2 *pReq; 3092 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities);3092 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities); 3093 3093 if (RT_SUCCESS(rc)) 3094 3094 { 3095 3095 pReq->u32NotMask = UINT32_MAX; 3096 3096 pReq->u32OrMask = 0; 3097 rc = Vbgl GRPerform(&pReq->header);3097 rc = VbglR0GRPerform(&pReq->header); 3098 3098 3099 3099 if (RT_FAILURE(rc)) 3100 3100 LogRelFunc(("failed with rc=%Rrc\n", rc)); 3101 Vbgl GRFree(&pReq->header);3101 VbglR0GRFree(&pReq->header); 3102 3102 } 3103 3103 RT_NOREF1(pDevExt); … … 3127 3127 pDevExt->fGuestCapsHost = pReq->u32OrMask; 3128 3128 pReq->u32NotMask = ~pReq->u32OrMask; 3129 rc = Vbgl GRPerform(&pReq->header);3129 rc = VbglR0GRPerform(&pReq->header); 3130 3130 if (RT_FAILURE(rc)) 3131 3131 pDevExt->fGuestCapsHost = UINT32_MAX; … … 3203 3203 if (!(fFlags & VBGL_IOC_AGC_FLAGS_CONFIG_ACQUIRE_MODE)) 3204 3204 { 3205 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities);3205 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities); 3206 3206 if (RT_SUCCESS(rc)) 3207 3207 { /* do nothing */ } 3208 3208 else if (!fSessionTermination) 3209 3209 { 3210 LogRel(("vgdrvAcquireSessionCapabilities: pSession=%p fOrMask=%#x fNotMask=%#x fFlags=%#x: Vbgl GRAlloc failure: %Rrc\n",3210 LogRel(("vgdrvAcquireSessionCapabilities: pSession=%p fOrMask=%#x fNotMask=%#x fFlags=%#x: VbglR0GRAlloc failure: %Rrc\n", 3211 3211 pSession, fOrMask, fNotMask, fFlags, rc)); 3212 3212 return rc; … … 3231 3231 3232 3232 if (pReq) 3233 Vbgl GRFree(&pReq->header);3233 VbglR0GRFree(&pReq->header); 3234 3234 AssertMsgFailed(("Trying to change caps mode: %#x\n", fOrMask)); 3235 3235 LogRel(("vgdrvAcquireSessionCapabilities: pSession=%p fOrMask=%#x fNotMask=%#x fFlags=%#x: calling caps acquire for set caps\n", … … 3303 3303 RTSpinlockRelease(pDevExt->EventSpinlock); 3304 3304 LogRel(("vgdrvAcquireSessionCapabilities: vgdrvUpdateCapabilitiesOnHostWithReqAndLock failed: rc=%Rrc\n", rc)); 3305 Vbgl GRFree(&pReq->header);3305 VbglR0GRFree(&pReq->header); 3306 3306 return rc; 3307 3307 } … … 3314 3314 3315 3315 Log(("vgdrvAcquireSessionCapabilities: Caps %#x were busy\n", fOtherConflictingCaps)); 3316 Vbgl GRFree(&pReq->header);3316 VbglR0GRFree(&pReq->header); 3317 3317 return VERR_RESOURCE_BUSY; 3318 3318 } … … 3320 3320 RTSpinlockRelease(pDevExt->EventSpinlock); 3321 3321 if (pReq) 3322 Vbgl GRFree(&pReq->header);3322 VbglR0GRFree(&pReq->header); 3323 3323 3324 3324 /* … … 3403 3403 */ 3404 3404 VMMDevReqGuestCapabilities2 *pReq; 3405 int rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities);3405 int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities); 3406 3406 if (RT_SUCCESS(rc)) 3407 3407 { /* nothing */ } … … 3412 3412 if (pfGlobalCaps) 3413 3413 *pfGlobalCaps = UINT32_MAX; 3414 LogRel(("vgdrvSetSessionCapabilities: Vbgl GRAlloc failure: %Rrc\n", rc));3414 LogRel(("vgdrvSetSessionCapabilities: VbglR0GRAlloc failure: %Rrc\n", rc)); 3415 3415 return rc; 3416 3416 } … … 3479 3479 RTSpinlockRelease(pDevExt->SessionSpinlock); 3480 3480 if (pReq) 3481 Vbgl GRFree(&pReq->header);3481 VbglR0GRFree(&pReq->header); 3482 3482 return rc; 3483 3483 } … … 3911 3911 /* 3912 3912 * Acknowlegde events. 3913 * We don't use Vbgl GRPerform here as it may take another spinlocks.3913 * We don't use VbglR0GRPerform here as it may take another spinlocks. 3914 3914 */ 3915 3915 pReq->header.rc = VERR_INTERNAL_ERROR; -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibCrOgl.cpp
r68653 r68654 37 37 38 38 39 DECL VBGL(int) VbglR0CrCtlCreate(VBGLCRCTLHANDLE *phCtl)39 DECLR0VBGL(int) VbglR0CrCtlCreate(VBGLCRCTLHANDLE *phCtl) 40 40 { 41 41 int rc; … … 69 69 } 70 70 71 DECL VBGL(int) VbglR0CrCtlDestroy(VBGLCRCTLHANDLE hCtl)71 DECLR0VBGL(int) VbglR0CrCtlDestroy(VBGLCRCTLHANDLE hCtl) 72 72 { 73 73 VbglR0IdcClose(&hCtl->IdcHandle); … … 78 78 } 79 79 80 DECL VBGL(int) VbglR0CrCtlConConnect(VBGLCRCTLHANDLE hCtl, HGCMCLIENTID *pidClient)80 DECLR0VBGL(int) VbglR0CrCtlConConnect(VBGLCRCTLHANDLE hCtl, HGCMCLIENTID *pidClient) 81 81 { 82 82 VBGLIOCHGCMCONNECT info; … … 103 103 } 104 104 105 DECL VBGL(int) VbglR0CrCtlConDisconnect(VBGLCRCTLHANDLE hCtl, HGCMCLIENTID idClient)105 DECLR0VBGL(int) VbglR0CrCtlConDisconnect(VBGLCRCTLHANDLE hCtl, HGCMCLIENTID idClient) 106 106 { 107 107 VBGLIOCHGCMDISCONNECT info; … … 111 111 } 112 112 113 DECL VBGL(int) VbglR0CrCtlConCallRaw(VBGLCRCTLHANDLE hCtl, PVBGLIOCHGCMCALL pCallInfo, int cbCallInfo)113 DECLR0VBGL(int) VbglR0CrCtlConCallRaw(VBGLCRCTLHANDLE hCtl, PVBGLIOCHGCMCALL pCallInfo, int cbCallInfo) 114 114 { 115 115 return VbglR0IdcCallRaw(&hCtl->IdcHandle, VBGL_IOCTL_HGCM_CALL(cbCallInfo), &pCallInfo->Hdr, cbCallInfo); 116 116 } 117 117 118 DECL VBGL(int) VbglR0CrCtlConCall(VBGLCRCTLHANDLE hCtl, PVBGLIOCHGCMCALL pCallInfo, int cbCallInfo)118 DECLR0VBGL(int) VbglR0CrCtlConCall(VBGLCRCTLHANDLE hCtl, PVBGLIOCHGCMCALL pCallInfo, int cbCallInfo) 119 119 { 120 120 int rc = VbglR0IdcCallRaw(&hCtl->IdcHandle, VBGL_IOCTL_HGCM_CALL(cbCallInfo), &pCallInfo->Hdr, cbCallInfo); … … 124 124 } 125 125 126 DECL VBGL(int) VbglR0CrCtlConCallUserDataRaw(VBGLCRCTLHANDLE hCtl, PVBGLIOCHGCMCALL pCallInfo, int cbCallInfo)126 DECLR0VBGL(int) VbglR0CrCtlConCallUserDataRaw(VBGLCRCTLHANDLE hCtl, PVBGLIOCHGCMCALL pCallInfo, int cbCallInfo) 127 127 { 128 128 return VbglR0IdcCallRaw(&hCtl->IdcHandle, VBGL_IOCTL_HGCM_CALL_WITH_USER_DATA(cbCallInfo), &pCallInfo->Hdr, cbCallInfo); -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibGenericRequest.cpp
r68653 r68654 36 36 37 37 38 DECL VBGL(int) VbglGRVerify(const VMMDevRequestHeader *pReq, size_t cbReq)38 DECLR0VBGL(int) VbglGR0Verify(const VMMDevRequestHeader *pReq, size_t cbReq) 39 39 { 40 40 size_t cbReqExpected; … … 42 42 if (RT_UNLIKELY(!pReq || cbReq < sizeof(VMMDevRequestHeader))) 43 43 { 44 dprintf(("VbglGR Verify: Invalid parameter: pReq = %p, cbReq = %zu\n", pReq, cbReq));44 dprintf(("VbglGR0Verify: Invalid parameter: pReq = %p, cbReq = %zu\n", pReq, cbReq)); 45 45 return VERR_INVALID_PARAMETER; 46 46 } … … 48 48 if (RT_UNLIKELY(pReq->size > cbReq)) 49 49 { 50 dprintf(("VbglGR Verify: request size %u > buffer size %zu\n", pReq->size, cbReq));50 dprintf(("VbglGR0Verify: request size %u > buffer size %zu\n", pReq->size, cbReq)); 51 51 return VERR_INVALID_PARAMETER; 52 52 } … … 56 56 if (RT_UNLIKELY(cbReq < cbReqExpected)) 57 57 { 58 dprintf(("VbglGR Verify: buffer size %zu < expected size %zu\n", cbReq, cbReqExpected));58 dprintf(("VbglGR0Verify: buffer size %zu < expected size %zu\n", cbReq, cbReqExpected)); 59 59 return VERR_INVALID_PARAMETER; 60 60 } … … 68 68 if (RT_UNLIKELY(pReq->size != cbReqExpected)) 69 69 { 70 dprintf(("VbglGR Verify: request size %u != expected size %zu\n", pReq->size, cbReqExpected));70 dprintf(("VbglGR0Verify: request size %u != expected size %zu\n", pReq->size, cbReqExpected)); 71 71 return VERR_INVALID_PARAMETER; 72 72 } … … 96 96 if (RT_UNLIKELY(cbReq > VMMDEV_MAX_VMMDEVREQ_SIZE)) 97 97 { 98 dprintf(("VbglGR Verify: VMMDevReq_LogString: buffer size %zu too big\n", cbReq));98 dprintf(("VbglGR0Verify: VMMDevReq_LogString: buffer size %zu too big\n", cbReq)); 99 99 return VERR_BUFFER_OVERFLOW; /** @todo is this error code ok? */ 100 100 } … … 102 102 else 103 103 { 104 dprintf(("VbglGR Verify: request size %u > buffer size %zu\n", pReq->size, cbReq));104 dprintf(("VbglGR0Verify: request size %u > buffer size %zu\n", pReq->size, cbReq)); 105 105 return VERR_IO_BAD_LENGTH; /** @todo is this error code ok? */ 106 106 } … … 109 109 } 110 110 111 DECL VBGL(int) VbglGRAlloc(VMMDevRequestHeader **ppReq, size_t cbReq, VMMDevRequestType enmReqType)111 DECLR0VBGL(int) VbglR0GRAlloc(VMMDevRequestHeader **ppReq, size_t cbReq, VMMDevRequestType enmReqType) 112 112 { 113 113 int rc = vbglR0Enter(); … … 118 118 && cbReq == (uint32_t)cbReq) 119 119 { 120 VMMDevRequestHeader *pReq = (VMMDevRequestHeader *)Vbgl PhysHeapAlloc((uint32_t)cbReq);121 AssertMsgReturn(pReq, ("Vbgl GRAlloc: no memory (cbReq=%u)\n", cbReq), VERR_NO_MEMORY);120 VMMDevRequestHeader *pReq = (VMMDevRequestHeader *)VbglR0PhysHeapAlloc((uint32_t)cbReq); 121 AssertMsgReturn(pReq, ("VbglR0GRAlloc: no memory (cbReq=%u)\n", cbReq), VERR_NO_MEMORY); 122 122 memset(pReq, 0xAA, cbReq); 123 123 … … 134 134 else 135 135 { 136 dprintf(("Vbgl GRAlloc: Invalid parameter: ppReq=%p cbReq=%u\n", ppReq, cbReq));136 dprintf(("VbglR0GRAlloc: Invalid parameter: ppReq=%p cbReq=%u\n", ppReq, cbReq)); 137 137 rc = VERR_INVALID_PARAMETER; 138 138 } … … 141 141 } 142 142 143 DECL VBGL(int) VbglGRPerform(VMMDevRequestHeader *pReq)143 DECLR0VBGL(int) VbglR0GRPerform(VMMDevRequestHeader *pReq) 144 144 { 145 145 int rc = vbglR0Enter(); … … 148 148 if (pReq) 149 149 { 150 RTCCPHYS PhysAddr = Vbgl PhysHeapGetPhysAddr(pReq);150 RTCCPHYS PhysAddr = VbglR0PhysHeapGetPhysAddr(pReq); 151 151 if ( PhysAddr != 0 152 152 && PhysAddr < _4G) /* Port IO is 32 bit. */ … … 166 166 } 167 167 168 DECL VBGL(void) VbglGRFree(VMMDevRequestHeader *pReq)168 DECLR0VBGL(void) VbglR0GRFree(VMMDevRequestHeader *pReq) 169 169 { 170 170 int rc = vbglR0Enter(); 171 171 if (RT_SUCCESS(rc)) 172 Vbgl PhysHeapFree(pReq);172 VbglR0PhysHeapFree(pReq); 173 173 } 174 174 -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibHGCM.cpp
r68653 r68654 64 64 * @return VBox status code. 65 65 */ 66 DECL VBGL(int) VbglR0HGCMInit(void)66 DECLR0VBGL(int) VbglR0HGCMInit(void) 67 67 { 68 68 AssertReturn(g_hMtxHGCMHandleData == NIL_RTSEMFASTMUTEX, VINF_ALREADY_INITIALIZED); … … 75 75 * @return VBox status code. 76 76 */ 77 DECL VBGL(int) VbglR0HGCMTerminate(void)77 DECLR0VBGL(int) VbglR0HGCMTerminate(void) 78 78 { 79 79 RTSemFastMutexDestroy(g_hMtxHGCMHandleData); … … 139 139 } 140 140 141 DECL VBGL(int) VbglR0HGCMConnect(VBGLHGCMHANDLE *pHandle, const char *pszServiceName, HGCMCLIENTID *pidClient)141 DECLR0VBGL(int) VbglR0HGCMConnect(VBGLHGCMHANDLE *pHandle, const char *pszServiceName, HGCMCLIENTID *pidClient) 142 142 { 143 143 int rc; … … 182 182 } 183 183 184 DECL VBGL(int) VbglR0HGCMDisconnect(VBGLHGCMHANDLE handle, HGCMCLIENTID idClient)184 DECLR0VBGL(int) VbglR0HGCMDisconnect(VBGLHGCMHANDLE handle, HGCMCLIENTID idClient) 185 185 { 186 186 int rc; … … 199 199 } 200 200 201 DECL VBGL(int) VbglR0HGCMCallRaw(VBGLHGCMHANDLE handle, PVBGLIOCHGCMCALL pData, uint32_t cbData)201 DECLR0VBGL(int) VbglR0HGCMCallRaw(VBGLHGCMHANDLE handle, PVBGLIOCHGCMCALL pData, uint32_t cbData) 202 202 { 203 203 VBGL_HGCM_ASSERT_MSG(cbData >= sizeof(VBGLIOCHGCMCALL) + pData->cParms * sizeof(HGCMFunctionParameter), … … 208 208 } 209 209 210 DECL VBGL(int) VbglR0HGCMCall(VBGLHGCMHANDLE handle, PVBGLIOCHGCMCALL pData, uint32_t cbData)210 DECLR0VBGL(int) VbglR0HGCMCall(VBGLHGCMHANDLE handle, PVBGLIOCHGCMCALL pData, uint32_t cbData) 211 211 { 212 212 int rc = VbglR0HGCMCallRaw(handle, pData, cbData); … … 216 216 } 217 217 218 DECL VBGL(int) VbglR0HGCMCallUserDataRaw(VBGLHGCMHANDLE handle, PVBGLIOCHGCMCALL pData, uint32_t cbData)218 DECLR0VBGL(int) VbglR0HGCMCallUserDataRaw(VBGLHGCMHANDLE handle, PVBGLIOCHGCMCALL pData, uint32_t cbData) 219 219 { 220 220 VBGL_HGCM_ASSERT_MSG(cbData >= sizeof(VBGLIOCHGCMCALL) + pData->cParms * sizeof(HGCMFunctionParameter), -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibHGCMInternal.cpp
r68653 r68654 94 94 /* Allocate request */ 95 95 VMMDevHGCMConnect *pHGCMConnect = NULL; 96 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pHGCMConnect, sizeof(VMMDevHGCMConnect), VMMDevReq_HGCMConnect);96 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pHGCMConnect, sizeof(VMMDevHGCMConnect), VMMDevReq_HGCMConnect); 97 97 if (RT_SUCCESS(rc)) 98 98 { … … 104 104 105 105 /* Issue request */ 106 rc = Vbgl GRPerform (&pHGCMConnect->header.header);106 rc = VbglR0GRPerform (&pHGCMConnect->header.header); 107 107 if (RT_SUCCESS(rc)) 108 108 { … … 118 118 *pidClient = pHGCMConnect->u32ClientID; 119 119 } 120 Vbgl GRFree(&pHGCMConnect->header.header);120 VbglR0GRFree(&pHGCMConnect->header.header); 121 121 } 122 122 } … … 136 136 /* Allocate request */ 137 137 VMMDevHGCMDisconnect *pHGCMDisconnect = NULL; 138 rc = Vbgl GRAlloc ((VMMDevRequestHeader **)&pHGCMDisconnect, sizeof (VMMDevHGCMDisconnect), VMMDevReq_HGCMDisconnect);138 rc = VbglR0GRAlloc ((VMMDevRequestHeader **)&pHGCMDisconnect, sizeof (VMMDevHGCMDisconnect), VMMDevReq_HGCMDisconnect); 139 139 if (RT_SUCCESS(rc)) 140 140 { … … 145 145 146 146 /* Issue request */ 147 rc = Vbgl GRPerform(&pHGCMDisconnect->header.header);147 rc = VbglR0GRPerform(&pHGCMDisconnect->header.header); 148 148 if (RT_SUCCESS(rc)) 149 149 { … … 158 158 } 159 159 160 Vbgl GRFree(&pHGCMDisconnect->header.header);160 VbglR0GRFree(&pHGCMDisconnect->header.header); 161 161 } 162 162 } … … 631 631 int rc; 632 632 633 Log(("calling Vbgl GRPerform\n"));634 rc = Vbgl GRPerform(&pHGCMCall->header.header);635 Log(("Vbgl GRPerform rc = %Rrc (header rc=%d)\n", rc, pHGCMCall->header.result));633 Log(("calling VbglR0GRPerform\n")); 634 rc = VbglR0GRPerform(&pHGCMCall->header.header); 635 Log(("VbglR0GRPerform rc = %Rrc (header rc=%d)\n", rc, pHGCMCall->header.result)); 636 636 637 637 /* … … 672 672 * version of all that stuff, I would've done it already. */ 673 673 VMMDevHGCMCancel2 *pCancelReq; 674 int rc2 = Vbgl GRAlloc((VMMDevRequestHeader **)&pCancelReq, sizeof(*pCancelReq), VMMDevReq_HGCMCancel2);674 int rc2 = VbglR0GRAlloc((VMMDevRequestHeader **)&pCancelReq, sizeof(*pCancelReq), VMMDevReq_HGCMCancel2); 675 675 if (RT_SUCCESS(rc2)) 676 676 { 677 pCancelReq->physReqToCancel = Vbgl PhysHeapGetPhysAddr(pHGCMCall);678 rc2 = Vbgl GRPerform(&pCancelReq->header);679 Vbgl GRFree(&pCancelReq->header);677 pCancelReq->physReqToCancel = VbglR0PhysHeapGetPhysAddr(pHGCMCall); 678 rc2 = VbglR0GRPerform(&pCancelReq->header); 679 VbglR0GRFree(&pCancelReq->header); 680 680 } 681 681 #if 1 /** @todo ADDVER: Remove this on next minor version change. */ … … 685 685 pHGCMCall->header.fu32Flags |= VBOX_HGCM_REQ_CANCELLED; 686 686 pHGCMCall->header.header.requestType = VMMDevReq_HGCMCancel; 687 rc2 = Vbgl GRPerform(&pHGCMCall->header.header);687 rc2 = VbglR0GRPerform(&pHGCMCall->header.header); 688 688 if (rc2 == VERR_INVALID_PARAMETER) 689 689 rc2 = VERR_NOT_FOUND; … … 890 890 */ 891 891 VMMDevHGCMCall *pHGCMCall; 892 rc = Vbgl GRAlloc((VMMDevRequestHeader **)&pHGCMCall,892 rc = VbglR0GRAlloc((VMMDevRequestHeader **)&pHGCMCall, 893 893 sizeof(VMMDevHGCMCall) + pCallInfo->cParms * sizeof(HGCMFunctionParameter) + cbExtra, 894 894 VMMDevReq_HGCMCall); … … 921 921 922 922 if (!fLeakIt) 923 Vbgl GRFree(&pHGCMCall->header.header);923 VbglR0GRFree(&pHGCMCall->header.header); 924 924 } 925 925 } -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibInit.cpp
r68645 r68654 44 44 45 45 /** 46 * Used by vbgl QueryDriverInfo and VbglInit to try get the host feature mask and47 * version information (g_vbgldata::hostVersion).46 * Used by vbglR0QueryDriverInfo and VbglInit to try get the host feature mask 47 * and version information (g_vbgldata::hostVersion). 48 48 * 49 49 * This was first implemented by the host in 3.1 and we quietly ignore failures … … 53 53 { 54 54 VMMDevReqHostVersion *pReq; 55 int rc = Vbgl GRAlloc((VMMDevRequestHeader **) &pReq, sizeof (*pReq), VMMDevReq_GetHostVersion);56 if (RT_SUCCESS(rc)) 57 { 58 rc = Vbgl GRPerform(&pReq->header);55 int rc = VbglR0GRAlloc((VMMDevRequestHeader **) &pReq, sizeof (*pReq), VMMDevReq_GetHostVersion); 56 if (RT_SUCCESS(rc)) 57 { 58 rc = VbglR0GRPerform(&pReq->header); 59 59 if (RT_SUCCESS(rc)) 60 60 { … … 64 64 } 65 65 66 Vbgl GRFree(&pReq->header);66 VbglR0GRFree(&pReq->header); 67 67 } 68 68 } … … 78 78 * values and fails if they are unavailable. 79 79 */ 80 static void vbgl QueryDriverInfo(void)80 static void vbglR0QueryDriverInfo(void) 81 81 { 82 82 # ifdef VBGLDATA_USE_FAST_MUTEX … … 143 143 if (g_vbgldata.status == VbglStatusInitializing) 144 144 { 145 vbgl QueryDriverInfo();145 vbglR0QueryDriverInfo(); 146 146 if (g_vbgldata.status == VbglStatusReady) 147 147 return VINF_SUCCESS; … … 152 152 153 153 154 static int vbgl InitCommon(void)154 static int vbglR0InitCommon(void) 155 155 { 156 156 int rc; … … 159 159 g_vbgldata.status = VbglStatusInitializing; 160 160 161 rc = Vbgl PhysHeapInit();162 if (RT_SUCCESS(rc)) 163 { 164 dprintf(("vbgl InitCommon: returns rc = %d\n", rc));161 rc = VbglR0PhysHeapInit(); 162 if (RT_SUCCESS(rc)) 163 { 164 dprintf(("vbglR0InitCommon: returns rc = %d\n", rc)); 165 165 return rc; 166 166 } 167 167 168 LogRel(("vbgl InitCommon: VbglPhysHeapInit failed: rc=%Rrc\n", rc));168 LogRel(("vbglR0InitCommon: VbglR0PhysHeapInit failed: rc=%Rrc\n", rc)); 169 169 g_vbgldata.status = VbglStatusNotInitialized; 170 170 return rc; … … 172 172 173 173 174 static void vbgl TerminateCommon(void)175 { 176 Vbgl PhysHeapTerminate();174 static void vbglR0TerminateCommon(void) 175 { 176 VbglR0PhysHeapTerminate(); 177 177 g_vbgldata.status = VbglStatusNotInitialized; 178 178 } … … 180 180 #ifdef VBGL_VBOXGUEST 181 181 182 DECLVBGL(int) Vbgl InitPrimary(RTIOPORT portVMMDev, VMMDevMemory *pVMMDevMemory)182 DECLVBGL(int) VbglR0InitPrimary(RTIOPORT portVMMDev, VMMDevMemory *pVMMDevMemory) 183 183 { 184 184 int rc; … … 197 197 # endif 198 198 199 rc = vbgl InitCommon();199 rc = vbglR0InitCommon(); 200 200 if (RT_SUCCESS(rc)) 201 201 { … … 214 214 DECLVBGL(void) VbglR0TerminatePrimary(void) 215 215 { 216 vbgl TerminateCommon();216 vbglR0TerminateCommon(); 217 217 } 218 218 … … 232 232 } 233 233 234 rc = vbgl InitCommon();234 rc = vbglR0InitCommon(); 235 235 if (RT_SUCCESS(rc)) 236 236 { … … 243 243 { 244 244 /* Try to obtain VMMDev port via IOCTL to VBoxGuest main driver. */ 245 vbgl QueryDriverInfo();245 vbglR0QueryDriverInfo(); 246 246 247 247 # ifdef VBOX_WITH_HGCM … … 259 259 # endif 260 260 } 261 vbgl TerminateCommon();261 vbglR0TerminateCommon(); 262 262 } 263 263 … … 282 282 # endif 283 283 284 /* note: do vbgl TerminateCommon as a last step since it zeroez up the g_vbgldata285 * conceptually, doing vbgl TerminateCommon last is correct284 /* note: do vbglR0TerminateCommon as a last step since it zeroez up the g_vbgldata 285 * conceptually, doing vbglR0TerminateCommon last is correct 286 286 * since this is the reverse order to how init is done */ 287 vbgl TerminateCommon();287 vbglR0TerminateCommon(); 288 288 } 289 289 … … 295 295 else 296 296 { 297 vbgl QueryDriverInfo();297 vbglR0QueryDriverInfo(); 298 298 if (g_vbgldata.status != VbglStatusReady) 299 299 { … … 308 308 309 309 #endif /* !VBGL_VBOXGUEST */ 310 -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibMouse.cpp
r68653 r68654 48 48 * @param pvUser user supplied data/cookie to be passed to the function. 49 49 */ 50 DECL VBGL(int) VbglSetMouseNotifyCallback(PFNVBOXGUESTMOUSENOTIFY pfnNotify, void *pvUser)50 DECLR0VBGL(int) VbglR0SetMouseNotifyCallback(PFNVBOXGUESTMOUSENOTIFY pfnNotify, void *pvUser) 51 51 { 52 52 PVBGLIDCHANDLE pIdcHandle; … … 63 63 } 64 64 65 65 66 /** 66 67 * Retrieve mouse coordinates and features from the host. … … 73 74 * @param py Where to store the Y co-ordinate. 74 75 */ 75 DECL VBGL(int) VbglGetMouseStatus(uint32_t *pfFeatures, uint32_t *px, uint32_t *py)76 DECLR0VBGL(int) VbglR0GetMouseStatus(uint32_t *pfFeatures, uint32_t *px, uint32_t *py) 76 77 { 77 78 PVBGLIDCHANDLE pIdcHandle; … … 98 99 } 99 100 101 100 102 /** 101 103 * Send mouse features to the host. … … 108 110 * feature enabled by any guest caller. 109 111 */ 110 DECL VBGL(int) VbglSetMouseStatus(uint32_t fFeatures)112 DECLR0VBGL(int) VbglR0SetMouseStatus(uint32_t fFeatures) 111 113 { 112 114 PVBGLIDCHANDLE pIdcHandle; -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibPhysHeap.cpp
r68653 r68654 397 397 398 398 399 DECL VBGL(void *) VbglPhysHeapAlloc (uint32_t cbSize)399 DECLR0VBGL(void *) VbglR0PhysHeapAlloc (uint32_t cbSize) 400 400 { 401 401 VBGLPHYSHEAPBLOCK *pBlock, *iter; … … 494 494 495 495 vbglPhysHeapLeave (); 496 VBGL_PH_dprintf(("Vbgl PhysHeapAlloc %x size %x\n", vbglPhysHeapBlock2Data (pBlock), pBlock->cbDataSize));496 VBGL_PH_dprintf(("VbglR0PhysHeapAlloc %x size %x\n", vbglPhysHeapBlock2Data (pBlock), pBlock->cbDataSize)); 497 497 498 498 return vbglPhysHeapBlock2Data (pBlock); 499 499 } 500 500 501 DECL VBGL(uint32_t) VbglPhysHeapGetPhysAddr (void *p)501 DECLR0VBGL(uint32_t) VbglR0PhysHeapGetPhysAddr (void *p) 502 502 { 503 503 uint32_t physAddr = 0; … … 516 516 } 517 517 518 DECL VBGL(void) VbglPhysHeapFree(void *p)518 DECLR0VBGL(void) VbglR0PhysHeapFree(void *p) 519 519 { 520 520 VBGLPHYSHEAPBLOCK *pBlock; … … 543 543 dumpheap ("post exclude"); 544 544 545 VBGL_PH_dprintf(("Vbgl PhysHeapFree %x size %x\n", p, pBlock->cbDataSize));545 VBGL_PH_dprintf(("VbglR0PhysHeapFree %x size %x\n", p, pBlock->cbDataSize)); 546 546 547 547 /* Mark as free */ … … 613 613 } 614 614 615 DECL VBGL(int) VbglPhysHeapInit (void)615 DECLR0VBGL(int) VbglR0PhysHeapInit (void) 616 616 { 617 617 int rc = VINF_SUCCESS; … … 628 628 } 629 629 630 DECL VBGL(void) VbglPhysHeapTerminate (void)630 DECLR0VBGL(void) VbglR0PhysHeapTerminate (void) 631 631 { 632 632 while (g_vbgldata.pChunkHead) -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibVMMDev.cpp
r68653 r68654 31 31 32 32 33 DECLVBGL(int) Vbgl QueryVMMDevMemory(VMMDevMemory **ppVMMDevMemory)33 DECLVBGL(int) VbglR0QueryVMMDevMemory(VMMDevMemory **ppVMMDevMemory) 34 34 { 35 35 int rc = vbglR0Enter(); -
trunk/src/VBox/Additions/solaris/Mouse/testcase/solaris.h
r68550 r68654 347 347 #define VBoxGuestCommonIOCtl(...) VINF_SUCCESS 348 348 #define VBoxGuestCommonISR(...) true 349 #define Vbgl GRAlloc(...) VINF_SUCCESS350 #define Vbgl GRPerform(...) VINF_SUCCESS351 #define Vbgl GRFree(...) do {} while(0)349 #define VbglR0GRAlloc(...) VINF_SUCCESS 350 #define VbglR0GRPerform(...) VINF_SUCCESS 351 #define VbglR0GRFree(...) do {} while(0) 352 352 #endif 353 353 #define VbglR0InitClient(...) VINF_SUCCESS -
trunk/src/VBox/Additions/solaris/Mouse/vboxms.c
r68640 r68654 472 472 if (RT_SUCCESS(rc)) 473 473 { 474 rc = Vbgl GRAlloc((VMMDevRequestHeader **)474 rc = VbglR0GRAlloc((VMMDevRequestHeader **) 475 475 &pState->pMouseStatusReq, 476 476 sizeof(*pState->pMouseStatusReq), … … 488 488 qprocson(pReadQueue); 489 489 /* Enable our IRQ handler. */ 490 rc2 = VbglSetMouseNotifyCallback(vbmsSolNotify, 491 (void *)pState); 490 rc2 = VbglR0SetMouseNotifyCallback(vbmsSolNotify, (void *)pState); 492 491 if (RT_FAILURE(rc2)) 493 492 /* Log the failure. I may well have not understood what … … 525 524 pState->pMouseStatusReq->pointerXPos = 0; 526 525 pState->pMouseStatusReq->pointerYPos = 0; 527 rc = Vbgl GRPerform(&pState->pMouseStatusReq->header);526 rc = VbglR0GRPerform(&pState->pMouseStatusReq->header); 528 527 if (RT_SUCCESS(rc)) 529 528 { … … 590 589 if (!pState->cInits) 591 590 { 592 Vbgl SetMouseStatus(0);591 VbglR0SetMouseStatus(0); 593 592 /* Disable our IRQ handler. */ 594 Vbgl SetMouseNotifyCallback(NULL, NULL);593 VbglR0SetMouseNotifyCallback(NULL, NULL); 595 594 qprocsoff(pReadQueue); 596 595 … … 600 599 ASMAtomicWriteNullPtr(&pState->pWriteQueue); 601 600 pReadQueue->q_ptr = NULL; 602 Vbgl GRFree(&pState->pMouseStatusReq->header);601 VbglR0GRFree(&pState->pMouseStatusReq->header); 603 602 VbglR0TerminateClient(); 604 603 } … … 1376 1375 pState->cMaxScreenY = pResolution->height - 1; 1377 1376 /* Note: we don't disable this again until session close. */ 1378 rc = Vbgl SetMouseStatus( VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE1379 | VMMDEV_MOUSE_NEW_PROTOCOL);1377 rc = VbglR0SetMouseStatus( VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE 1378 | VMMDEV_MOUSE_NEW_PROTOCOL); 1380 1379 if (RT_SUCCESS(rc)) 1381 1380 return 0;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器