VirtualBox

Ignore:
Timestamp:
Nov 5, 2008 1:45:41 PM (16 years ago)
Author:
vboxsync
Message:

Pass the VMCPU id to the ring 0 callbacks.

Location:
trunk/src/VBox/HostDrivers/Support/win
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r13529 r13858  
    326326        KIRQL oldIrql;
    327327        KeRaiseIrql(DISPATCH_LEVEL, &oldIrql);
    328         int rc = supdrvIOCtlFast(ulCmd, pDevExt, pSession);
     328        int rc = supdrvIOCtlFast(ulCmd, (unsigned)pIrp->UserBuffer /* VMCPU id */, pDevExt, pSession);
    329329        KeLowerIrql(oldIrql);
    330330
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrvA-win.asm

    r13536 r13858  
    193193
    194194;;
    195 ; @cproto DECLASM(int)    supdrvNtWrapVMMR0EntryFast(PFNRT pfnVMMR0EntryFast, PVM pVM, unsigned uOperation);
     195; @cproto DECLASM(int)    supdrvNtWrapVMMR0EntryFast(PFNRT pfnVMMR0EntryFast, PVM pVM, unsigned idCPU, unsigned uOperation);
    196196;
    197197; @param    pfnVMMR0EntryFast   rcx
    198198; @param    pVM                 rdx
    199 ; @param    uOperation          r8
     199; @param    idCPU               r8
     200; @param    uOperation          r9
    200201;
    201202BEGINPROC supdrvNtWrapVMMR0EntryFast
     
    206207        mov     rcx, rdx
    207208        mov     rdx, r8
     209        mov     r8, r9
    208210        call    rax
    209211
  • trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp

    r13835 r13858  
    504504
    505505
    506 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction)
     506int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, unsigned idCpu)
    507507{
    508508    /*
     
    510510     */
    511511    DWORD cbReturned = 0;
    512     if (DeviceIoControl((HANDLE)pThis->hDevice, uFunction, NULL, 0, NULL, 0, &cbReturned, NULL))
     512    if (DeviceIoControl((HANDLE)pThis->hDevice, uFunction, NULL, 0, (LPVOID)idCpu, 0, &cbReturned, NULL))
    513513        return VINF_SUCCESS;
    514514    return suplibConvertWin32Err(GetLastError());
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