Changeset 70873 in vbox for trunk/src/VBox/Additions/common/VBoxGuest/lib
- Timestamp:
- Feb 5, 2018 6:13:55 PM (7 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuest/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibGenericRequest.cpp
r69500 r70873 127 127 pReq->rc = VERR_GENERAL_FAILURE; 128 128 pReq->reserved1 = 0; 129 pReq->reserved2 = 0; 129 #ifdef VBGL_VBOXGUEST 130 pReq->fRequestor = VMMDEV_REQUESTOR_KERNEL | VMMDEV_REQUESTOR_USR_DRV 131 #else 132 pReq->fRequestor = VMMDEV_REQUESTOR_KERNEL | VMMDEV_REQUESTOR_USR_DRV_OTHER 133 #endif 130 134 135 | VMMDEV_REQUESTOR_CON_DONT_KNOW | VMMDEV_REQUESTOR_TRUST_NOT_GIVEN; 131 136 *ppReq = pReq; 132 137 rc = VINF_SUCCESS; -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibHGCMInternal.cpp
r69638 r70873 84 84 /* These functions can be only used by VBoxGuest. */ 85 85 86 DECLR0VBGL(int) VbglR0HGCMInternalConnect(HGCMServiceLocation const *pLoc, HGCMCLIENTID *pidClient,86 DECLR0VBGL(int) VbglR0HGCMInternalConnect(HGCMServiceLocation const *pLoc, uint32_t fRequestor, HGCMCLIENTID *pidClient, 87 87 PFNVBGLHGCMCALLBACK pfnAsyncCallback, void *pvAsyncData, uint32_t u32AsyncData) 88 88 { … … 98 98 { 99 99 /* Initialize request memory */ 100 pHGCMConnect->header.header.fRequestor = fRequestor; 101 100 102 pHGCMConnect->header.fu32Flags = 0; 101 103 … … 127 129 128 130 129 DECLR0VBGL(int) VbglR0HGCMInternalDisconnect(HGCMCLIENTID idClient, 131 DECLR0VBGL(int) VbglR0HGCMInternalDisconnect(HGCMCLIENTID idClient, uint32_t fRequestor, 130 132 PFNVBGLHGCMCALLBACK pfnAsyncCallback, void *pvAsyncData, uint32_t u32AsyncData) 131 133 { … … 140 142 { 141 143 /* Initialize request memory */ 144 pHGCMDisconnect->header.header.fRequestor = fRequestor; 145 142 146 pHGCMDisconnect->header.fu32Flags = 0; 143 147 … … 471 475 * @param pCallInfo The call info. 472 476 * @param cbCallInfo The size of the call info structure. 477 * @param fRequestor VMMDEV_REQUESTOR_XXX. 473 478 * @param fIsUser Is it a user request or kernel request. 474 479 * @param pcbExtra Where to return the extra request space needed for … … 476 481 */ 477 482 static void vbglR0HGCMInternalInitCall(VMMDevHGCMCall *pHGCMCall, PCVBGLIOCHGCMCALL pCallInfo, 478 uint32_t cbCallInfo, bool fIsUser, struct VbglR0ParmInfo *pParmInfo)483 uint32_t cbCallInfo, uint32_t fRequestor, bool fIsUser, struct VbglR0ParmInfo *pParmInfo) 479 484 { 480 485 HGCMFunctionParameter const *pSrcParm = VBGL_HGCM_GET_CALL_PARMS(pCallInfo); … … 492 497 * The call request headers. 493 498 */ 499 pHGCMCall->header.header.fRequestor = !fIsUser || (fRequestor & VMMDEV_REQUESTOR_USERMODE) ? fRequestor 500 : VMMDEV_REQUESTOR_USERMODE | VMMDEV_REQUESTOR_USR_NOT_GIVEN 501 | VMMDEV_REQUESTOR_TRUST_NOT_GIVEN | VMMDEV_REQUESTOR_CON_DONT_KNOW; 502 494 503 pHGCMCall->header.fu32Flags = 0; 495 504 pHGCMCall->header.result = VINF_SUCCESS; … … 855 864 856 865 857 DECLR0VBGL(int) VbglR0HGCMInternalCall(PVBGLIOCHGCMCALL pCallInfo, uint32_t cbCallInfo, uint32_t fFlags, 866 DECLR0VBGL(int) VbglR0HGCMInternalCall(PVBGLIOCHGCMCALL pCallInfo, uint32_t cbCallInfo, uint32_t fFlags, uint32_t fRequestor, 858 867 PFNVBGLHGCMCALLBACK pfnAsyncCallback, void *pvAsyncData, uint32_t u32AsyncData) 859 868 { … … 896 905 { 897 906 bool fLeakIt; 898 vbglR0HGCMInternalInitCall(pHGCMCall, pCallInfo, cbCallInfo, f IsUser, &ParmInfo);907 vbglR0HGCMInternalInitCall(pHGCMCall, pCallInfo, cbCallInfo, fRequestor, fIsUser, &ParmInfo); 899 908 900 909 /* … … 944 953 945 954 #if ARCH_BITS == 64 946 DECLR0VBGL(int) VbglR0HGCMInternalCall32(PVBGLIOCHGCMCALL pCallInfo, uint32_t cbCallInfo, uint32_t fFlags, 955 DECLR0VBGL(int) VbglR0HGCMInternalCall32(PVBGLIOCHGCMCALL pCallInfo, uint32_t cbCallInfo, uint32_t fFlags, uint32_t fRequestor, 947 956 PFNVBGLHGCMCALLBACK pfnAsyncCallback, void *pvAsyncData, uint32_t u32AsyncData) 948 957 { … … 1018 1027 { 1019 1028 rc = VbglR0HGCMInternalCall(pCallInfo64, sizeof(*pCallInfo64) + cParms * sizeof(HGCMFunctionParameter), fFlags, 1020 pfnAsyncCallback, pvAsyncData, u32AsyncData);1029 fRequestor, pfnAsyncCallback, pvAsyncData, u32AsyncData); 1021 1030 1022 1031 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGR.cpp
r69500 r70873 52 52 pReq->rc = VERR_GENERAL_FAILURE; 53 53 pReq->reserved1 = 0; 54 pReq-> reserved2= 0;54 pReq->fRequestor = 0; 55 55 56 56 *ppReq = pReq;
Note:
See TracChangeset
for help on using the changeset viewer.