VirtualBox

Changeset 23011 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Sep 14, 2009 3:57:38 PM (15 years ago)
Author:
vboxsync
Message:

VMM,VMMDev: Some VMMR3ReqCall refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/VMAll.cpp

    r22915 r23011  
    261261     */
    262262    int rc;
    263     PVMREQ pReq;
    264263    if (    !(fFlags & VMSETRTERR_FLAGS_NO_WAIT)
    265264        ||  VM_IS_EMT(pVM))
     
    269268        va_list va2;
    270269        va_copy(va2, va); /* Have to make a copy here or GCC will break. */
    271         rc = VMR3ReqCallU(pVM->pUVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, VMREQFLAGS_VBOX_STATUS,
    272                           (PFNRT)vmR3SetRuntimeErrorV, 5, pVM, fFlags, pszErrorId, pszFormat, &va2);
     270        rc = VMR3ReqCallWaitU(pVM->pUVM, VMCPUID_ANY,
     271                              (PFNRT)vmR3SetRuntimeErrorV, 5, pVM, fFlags, pszErrorId, pszFormat, &va2);
    273272        va_end(va2);
    274         if (RT_SUCCESS(rc))
    275             rc = pReq->iStatus;
    276273    }
    277274    else
    278275    {
    279276        char *pszMessage = MMR3HeapAPrintfV(pVM, MM_TAG_VM, pszFormat, va);
    280 
    281         rc = VMR3ReqCallU(pVM->pUVM, VMCPUID_ANY, &pReq, 0, VMREQFLAGS_VBOX_STATUS | VMREQFLAGS_NO_WAIT,
    282                           (PFNRT)vmR3SetRuntimeError, 4, pVM, fFlags, pszErrorId, pszMessage);
     277        rc = VMR3ReqCallNoWaitU(pVM->pUVM, VMCPUID_ANY,
     278                                (PFNRT)vmR3SetRuntimeError, 4, pVM, fFlags, pszErrorId, pszMessage);
    283279        if (RT_FAILURE(rc))
    284280            MMR3HeapFree(pszMessage);
    285281    }
    286     VMR3ReqFree(pReq);
    287282
    288283#else
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