Changeset 75990 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 5, 2018 7:51:01 PM (6 years ago)
- Location:
- trunk/src/VBox/Devices/VMMDev
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r75875 r75990 4427 4427 pThis->IHGCMPort.pfnCompleted = hgcmCompleted; 4428 4428 pThis->IHGCMPort.pfnIsCmdRestored = hgcmIsCmdRestored; 4429 pThis->IHGCMPort.pfnIsCmdCancelled = hgcmIsCmdCancelled; 4429 4430 pThis->IHGCMPort.pfnGetRequestor = hgcmGetRequestor; 4430 4431 pThis->IHGCMPort.pfnGetVMMDevSessionId = hgcmGetVMMDevSessionId; -
trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp
r75979 r75990 1169 1169 { 1170 1170 pCmd->fCancelled = true; 1171 1171 1172 Log(("vmmdevHGCMCancel2: Cancelled pCmd=%p / GCPhys=%#x\n", pCmd, GCPhys)); 1173 if (pThis->pHGCMDrv) 1174 pThis->pHGCMDrv->pfnCancelled(pThis->pHGCMDrv, pCmd, 1175 pCmd->enmCmdType == VBOXHGCMCMDTYPE_CALL ? pCmd->u.call.u32ClientID 1176 : pCmd->enmCmdType == VBOXHGCMCMDTYPE_CONNECT ? pCmd->u.connect.u32ClientID 1177 : pCmd->enmCmdType == VBOXHGCMCMDTYPE_DISCONNECT ? pCmd->u.disconnect.u32ClientID 1178 : 0); 1172 1179 } 1173 1180 else … … 1537 1544 1538 1545 /** 1546 * @interface_method_impl{PDMIHGCMPORT,pfnIsCmdCancelled} 1547 */ 1548 DECLCALLBACK(bool) hgcmIsCmdCancelled(PPDMIHGCMPORT pInterface, PVBOXHGCMCMD pCmd) 1549 { 1550 RT_NOREF(pInterface); 1551 return pCmd && pCmd->fCancelled; 1552 } 1553 1554 /** 1539 1555 * @interface_method_impl{PDMIHGCMPORT,pfnGetRequestor} 1540 1556 */ … … 1589 1605 LogFlowFunc(("Saving %RGp, size %d\n", pCmd->GCPhys, pCmd->cbRequest)); 1590 1606 1607 /** @todo Don't save cancelled requests! It serves no purpose. See restore and 1608 * @bugref{4032#c4} for details. */ 1591 1609 SSMR3PutU32 (pSSM, (uint32_t)pCmd->enmCmdType); 1592 1610 SSMR3PutBool (pSSM, pCmd->fCancelled); -
trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.h
r75853 r75990 31 31 DECLCALLBACK(int) hgcmCompleted(PPDMIHGCMPORT pInterface, int32_t result, PVBOXHGCMCMD pCmdPtr); 32 32 DECLCALLBACK(bool) hgcmIsCmdRestored(PPDMIHGCMPORT pInterface, PVBOXHGCMCMD pCmd); 33 DECLCALLBACK(bool) hgcmIsCmdCancelled(PPDMIHGCMPORT pInterface, PVBOXHGCMCMD pCmd); 33 34 DECLCALLBACK(uint32_t) hgcmGetRequestor(PPDMIHGCMPORT pInterface, PVBOXHGCMCMD pCmd); 34 35 DECLCALLBACK(uint64_t) hgcmGetVMMDevSessionId(PPDMIHGCMPORT pInterface); -
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r75855 r75990 156 156 /** LUN\#0: HGCM port interface. */ 157 157 PDMIHGCMPORT IHGCMPort; 158 # if HC_ARCH_BITS == 32159 RTR3PTR R3PtrAlignment1;160 # endif158 //# if HC_ARCH_BITS == 32 159 // RTR3PTR R3PtrAlignment1; 160 //# endif 161 161 #endif 162 162 /** Pointer to base interface of the driver. */
Note:
See TracChangeset
for help on using the changeset viewer.