Changeset 35959 in vbox for trunk/src/VBox
- Timestamp:
- Feb 14, 2011 2:30:03 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c
r35946 r35959 85 85 } 86 86 87 /** 88 * @copydoc RAWPCIDEVPORT:: pfnRelease 89 */ 90 DECLHIDDEN(int) vboxPciDevInit(PRAWPCIDEVPORT pThis, uint32_t fFlags) 91 { 92 return VINF_SUCCESS; 93 } 94 87 95 88 96 /** … … 113 121 pNew->DevPort.pfnRetain = vboxPciDevRetain; 114 122 pNew->DevPort.pfnRelease = vboxPciDevRelease; 123 pNew->DevPort.pfnInit = vboxPciDevInit; 115 124 pNew->DevPort.u32VersionEnd = RAWPCIDEVPORT_VERSION; 116 125 117 126 rc = RTSpinlockCreate(&pNew->hSpinlock); 118 if (RT_SUCCESS(rc)) 119 { 120 *ppDevPort = &pNew->DevPort; 127 128 if (RT_SUCCESS(rc)) 129 { 130 rc = pNew->DevPort.pfnInit(&pNew->DevPort, fFlags); 131 if (RT_SUCCESS(rc)) 132 { 133 *ppDevPort = &pNew->DevPort; 134 } 135 else 136 { 137 RTSpinlockDestroy(pNew->hSpinlock); 138 RTMemFree(pNew); 139 } 121 140 return rc; 122 141 } -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r35902 r35959 1179 1179 if (u64Arg || !pReqHdr || !vmmR0IsValidSession(pVM, ((PPCIRAWSENDREQ)pReqHdr)->pSession, pSession) || idCpu != NIL_VMCPUID) 1180 1180 return VERR_INVALID_PARAMETER; 1181 return PciRawR0ProcessReq(pSession, (PPCIRAWSENDREQ)pReqHdr);1181 return PciRawR0ProcessReq(pSession, pVM, (PPCIRAWSENDREQ)pReqHdr); 1182 1182 #endif 1183 1183 /* … … 1553 1553 RTAssertMsg2V(pszFormat, va); 1554 1554 } 1555
Note:
See TracChangeset
for help on using the changeset viewer.