VirtualBox

Changeset 19300 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 1, 2009 6:06:59 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46755
Message:

VMReq,*: Replaced VMREQDEST with VMCPUID because it's a pain to have to cast CPU IDs all the time.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r19289 r19300  
    27942794     */
    27952795    PVMREQ pReq;
    2796     int vrc = VMR3ReqCall (mpVM, VMREQDEST_ANY, &pReq, 0 /* no wait! */,
     2796    int vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, 0 /* no wait! */,
    27972797                           (PFNRT) Console::changeDrive, 8,
    27982798                           this, pszDevice, uInstance, uLun, eState, peState,
     
    54965496/** @todo just do everything here and only wrap the PDMR3Usb call. That'll offload some notification stuff from the EMT thread. */
    54975497    PVMREQ pReq = NULL;
    5498     int vrc = VMR3ReqCall (mpVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     5498    int vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    54995499                           (PFNRT) usbAttachCallback, 6, this, aHostDevice, uuid.ptr(), fRemote, Address.raw(), aMaskedIfs);
    55005500    if (VBOX_SUCCESS (vrc))
     
    56215621    PVMREQ pReq;
    56225622/** @todo just do everything here and only wrap the PDMR3Usb call. That'll offload some notification stuff from the EMT thread. */
    5623     int vrc = VMR3ReqCall (mpVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     5623    int vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    56245624                           (PFNRT) usbDetachCallback, 4,
    56255625                           this, &aIt, (*aIt)->id().raw());
     
    69806980                 *  to access Console.
    69816981                 */
    6982                 int vrc = VMR3ReqCall (that->mpVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     6982                int vrc = VMR3ReqCall (that->mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    69836983                                       (PFNRT)reconfigureHardDisks, 5, that->mpVM, lInstance,
    69846984                                       enmController, atts [i], &rc);
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r18669 r19300  
    13851385        /* send request to the EMT thread */
    13861386        PVMREQ pReq = NULL;
    1387         int vrc = VMR3ReqCall (pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     1387        int vrc = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    13881388                               (PFNRT) changeFramebuffer, 4,
    13891389                               this, static_cast <IFramebuffer *> (frameBuf),
     
    14721472        /* send request to the EMT thread */
    14731473        PVMREQ pReq = NULL;
    1474         int vrc = VMR3ReqCall (pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     1474        int vrc = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    14751475            (PFNRT) changeFramebuffer, 4, this, frameBuf, false /* aInternal */,
    14761476            VBOX_VIDEO_PRIMARY_SCREEN);
     
    15151515        /* send request to the EMT thread */
    15161516        PVMREQ pReq = NULL;
    1517         int vrc = VMR3ReqCall (pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     1517        int vrc = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    15181518            (PFNRT) changeFramebuffer, 4, this, aFramebuffer, false /* aInternal */,
    15191519            aScreenId);
     
    16731673        PVMREQ pReq;
    16741674        size_t cbData = RT_ALIGN_Z(width, 4) * 4 * height;
    1675         rcVBox = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     1675        rcVBox = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    16761676            (PFNRT)mpDrv->pUpPort->pfnSnapshot, 6, mpDrv->pUpPort,
    16771677            address, cbData, (uintptr_t)NULL, (uintptr_t)NULL, (uintptr_t)NULL);
     
    17331733     */
    17341734    PVMREQ pReq;
    1735     int rcVBox = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     1735    int rcVBox = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    17361736        (PFNRT)mpDrv->pUpPort->pfnDisplayBlt, 6, mpDrv->pUpPort,
    17371737        address, x, y, width, height);
     
    17961796    /* pdm.h says that this has to be called from the EMT thread */
    17971797    PVMREQ pReq;
    1798     int rcVBox = VMR3ReqCallVoid(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     1798    int rcVBox = VMR3ReqCallVoid(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    17991799        (PFNRT)mpDrv->pUpPort->pfnUpdateDisplayAll, 1, mpDrv->pUpPort);
    18001800    if (RT_SUCCESS(rcVBox))
  • trunk/src/VBox/Main/MachineDebuggerImpl.cpp

    r18927 r19300  
    200200    PVMREQ pReq;
    201201    EMRAWMODE rawModeFlag = aEnable ? EMRAW_RING3_DISABLE : EMRAW_RING3_ENABLE;
    202     int rcVBox = VMR3ReqCall (pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     202    int rcVBox = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    203203                              (PFNRT)EMR3RawSetMode, 2, pVM.raw(), rawModeFlag);
    204204    if (RT_SUCCESS (rcVBox))
     
    268268    PVMREQ pReq;
    269269    EMRAWMODE rawModeFlag = aEnable ? EMRAW_RING0_DISABLE : EMRAW_RING0_ENABLE;
    270     int rcVBox = VMR3ReqCall (pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT,
     270    int rcVBox = VMR3ReqCall (pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
    271271                              (PFNRT)EMR3RawSetMode, 2, pVM.raw(), rawModeFlag);
    272272    if (RT_SUCCESS (rcVBox))
Note: See TracChangeset for help on using the changeset viewer.

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