VirtualBox

Changeset 23080 in vbox


Ignore:
Timestamp:
Sep 17, 2009 10:08:00 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52430
Message:

VMM,ConsoleImpl.cpp: Added fFlags to VMR3ReqCall.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmapi.h

    r23016 r23080  
    365365VMMR3DECL(int)  VMR3AtRuntimeErrorDeregister(PVM pVM, PFNVMATRUNTIMEERROR pfnAtRuntimeError, void *pvUser);
    366366VMMR3DECL(int)  VMR3SetRuntimeErrorWorker(PVM pVM);
    367 VMMR3DECL(int)  VMR3ReqCall(PVM pVM, VMCPUID idDstCpu, PVMREQ *ppReq, unsigned cMillies, PFNRT pfnFunction, unsigned cArgs, ...);
     367VMMR3DECL(int)  VMR3ReqCall(PVM pVM, VMCPUID idDstCpu, PVMREQ *ppReq, unsigned cMillies, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, ...);
    368368VMMR3DECL(int)  VMR3ReqCallU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, unsigned cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...);
    369369VMMR3DECL(int)  VMR3ReqCallVU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, unsigned cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args);
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r23020 r23080  
    29242924     */
    29252925    PVMREQ pReq;
    2926     int vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, 0 /* no wait! */,
     2926    int vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, 0 /* no wait! */, VMREQFLAGS_VBOX_STATUS,
    29272927                           (PFNRT) Console::changeDrive, 8,
    2928                            this, pszDevice, uInstance, uLun, eState, peState,
    2929                            pszPath, fPassthrough);
     2928                           this, pszDevice, uInstance, uLun, eState, peState, pszPath, fPassthrough);
    29302929
    29312930    /* leave the lock before waiting for a result (EMT will call us back!) */
     
    34463445     */
    34473446    PVMREQ pReq;
    3448     int vrc = VMR3ReqCall (mpVM, 0 /*idDstCpu*/, &pReq, 0 /* no wait! */,
     3447    int vrc = VMR3ReqCall (mpVM, 0 /*idDstCpu*/, &pReq, 0 /* no wait! */, VMREQFLAGS_VBOX_STATUS,
    34493448                           (PFNRT) Console::changeNetworkAttachment, 5,
    34503449                           this, pszDevice, uInstance, uLun, aNetworkAdapter);
  • trunk/src/VBox/VMM/VMReq.cpp

    r23017 r23080  
    6969 *                          be completed. Use RT_INDEFINITE_WAIT to only
    7070 *                          wait till it's completed.
     71 * @param   fFlags          A combination of the VMREQFLAGS values.
    7172 * @param   pfnFunction     Pointer to the function to call.
    7273 * @param   cArgs           Number of arguments following in the ellipsis.
    7374 *                          Not possible to pass 64-bit arguments!
    7475 * @param   ...             Function arguments.
    75  *
    76  * @todo    Add fFlags...
    77  */
    78 VMMR3DECL(int) VMR3ReqCall(PVM pVM, VMCPUID idDstCpu, PVMREQ *ppReq, unsigned cMillies, PFNRT pfnFunction, unsigned cArgs, ...)
     76 */
     77VMMR3DECL(int) VMR3ReqCall(PVM pVM, VMCPUID idDstCpu, PVMREQ *ppReq, unsigned cMillies, uint32_t fFlags,
     78                           PFNRT pfnFunction, unsigned cArgs, ...)
    7979{
    8080    va_list va;
    8181    va_start(va, cArgs);
    82     int rc = VMR3ReqCallVU(pVM->pUVM, idDstCpu, ppReq, cMillies, VMREQFLAGS_VBOX_STATUS, pfnFunction, cArgs, va);
     82    int rc = VMR3ReqCallVU(pVM->pUVM, idDstCpu, ppReq, cMillies, fFlags, pfnFunction, cArgs, va);
    8383    va_end(va);
    8484    return rc;
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