VirtualBox

Changeset 35959 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 14, 2011 2:30:03 PM (14 years ago)
Author:
vboxsync
Message:

PCI: further R0/driver work

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c

    r35946 r35959  
    8585}
    8686
     87/**
     88 * @copydoc RAWPCIDEVPORT:: pfnRelease
     89 */
     90DECLHIDDEN(int) vboxPciDevInit(PRAWPCIDEVPORT pThis, uint32_t fFlags)
     91{
     92    return VINF_SUCCESS;
     93}
     94
    8795
    8896/**
     
    113121    pNew->DevPort.pfnRetain             = vboxPciDevRetain;
    114122    pNew->DevPort.pfnRelease            = vboxPciDevRelease;
     123    pNew->DevPort.pfnInit               = vboxPciDevInit;
    115124    pNew->DevPort.u32VersionEnd         = RAWPCIDEVPORT_VERSION;
    116125   
    117126    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        }
    121140        return rc;
    122141    }
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r35902 r35959  
    11791179            if (u64Arg || !pReqHdr || !vmmR0IsValidSession(pVM, ((PPCIRAWSENDREQ)pReqHdr)->pSession, pSession) || idCpu != NIL_VMCPUID)
    11801180                return VERR_INVALID_PARAMETER;
    1181             return PciRawR0ProcessReq(pSession, (PPCIRAWSENDREQ)pReqHdr);
     1181            return PciRawR0ProcessReq(pSession, pVM, (PPCIRAWSENDREQ)pReqHdr);
    11821182#endif
    11831183        /*
     
    15531553    RTAssertMsg2V(pszFormat, va);
    15541554}
    1555 
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette