VirtualBox

Changeset 10805 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jul 22, 2008 9:44:31 AM (16 years ago)
Author:
vboxsync
Message:

VMM+SUPDrv: Changed the VMMR0EntryEx interface to also take the session as an argument, this means breaking the current IOC interface and thus a major driver version change.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r10724 r10805  
    11161116                /* execute */
    11171117                if (RT_LIKELY(pDevExt->pfnVMMR0EntryEx))
    1118                     pReq->Hdr.rc = pDevExt->pfnVMMR0EntryEx(pReq->u.In.pVMR0, pReq->u.In.uOperation, NULL, pReq->u.In.u64Arg);
     1118                    pReq->Hdr.rc = pDevExt->pfnVMMR0EntryEx(pReq->u.In.pVMR0, pReq->u.In.uOperation, NULL, pReq->u.In.u64Arg, pSession);
    11191119                else
    11201120                    pReq->Hdr.rc = VERR_WRONG_ORDER;
     
    11301130                /* execute */
    11311131                if (RT_LIKELY(pDevExt->pfnVMMR0EntryEx))
    1132                     pReq->Hdr.rc = pDevExt->pfnVMMR0EntryEx(pReq->u.In.pVMR0, pReq->u.In.uOperation, pVMMReq, pReq->u.In.u64Arg);
     1132                    pReq->Hdr.rc = pDevExt->pfnVMMR0EntryEx(pReq->u.In.pVMR0, pReq->u.In.uOperation, pVMMReq, pReq->u.In.u64Arg, pSession);
    11331133                else
    11341134                    pReq->Hdr.rc = VERR_WRONG_ORDER;
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h

    r10732 r10805  
    182182 * The upper 16-bit is the major version, the the lower the minor version.
    183183 * When incompatible changes are made, the upper major number has to be changed. */
    184 #define SUPDRV_IOC_VERSION                              0x00080001
     184#define SUPDRV_IOC_VERSION                              0x00090000
    185185
    186186/** SUP_IOCTL_COOKIE. */
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r10724 r10805  
    617617    DECLR0CALLBACKMEMBER(void, pfnVMMR0EntryFast, (PVM pVM, unsigned uOperation));
    618618    /** VMMR0EntryEx() pointer. */
    619     DECLR0CALLBACKMEMBER(int, pfnVMMR0EntryEx, (PVM pVM, unsigned uOperation, PSUPVMMR0REQHDR pReq, uint64_t u64Arg));
     619    DECLR0CALLBACKMEMBER(int, pfnVMMR0EntryEx, (PVM pVM, unsigned uOperation, PSUPVMMR0REQHDR pReq, uint64_t u64Arg, PSUPDRVSESSION pSession));
    620620
    621621    /** Linked list of loaded code. */
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r10732 r10805  
    212212        strcpy(CookieReq.u.In.szMagic, SUPCOOKIE_MAGIC);
    213213        CookieReq.u.In.u32ReqVersion = SUPDRV_IOC_VERSION;
    214         const uint32_t MinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x00080000
     214        const uint32_t MinVersion = /*(SUPDRV_IOC_VERSION & 0xffff0000) == 0x00080000
    215215                                  ? 0x00080001
    216                                   : SUPDRV_IOC_VERSION & 0xffff0000;
     216                                  : */ SUPDRV_IOC_VERSION & 0xffff0000;
    217217        CookieReq.u.In.u32MinVersion = MinVersion;
    218218        rc = suplibOsIOCtl(SUP_IOCTL_COOKIE, &CookieReq, SUP_IOCTL_COOKIE_SIZE);
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