VirtualBox

Changeset 19300 in vbox for trunk/src/VBox/VMM/testcase


Ignore:
Timestamp:
May 1, 2009 6:06:59 PM (16 years ago)
Author:
vboxsync
Message:

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

Location:
trunk/src/VBox/VMM/testcase
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstAnimate.cpp

    r14831 r19300  
    836836        PVMREQ pReq1 = NULL;
    837837        if (FileRawMem != NIL_RTFILE)
    838             rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)loadMem, 3, pVM, FileRawMem, &offRawMem);
     838            rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)loadMem, 3, pVM, FileRawMem, &offRawMem);
    839839        else
    840             rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)SSMR3Load, 4, pVM, pszSavedState, SSMAFTER_DEBUG_IT, NULL, NULL);
     840            rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)SSMR3Load, 4, pVM, pszSavedState, SSMAFTER_DEBUG_IT, NULL, NULL);
    841841        AssertReleaseRC(rc);
    842842        rc = pReq1->iStatus;
     
    849849            if (FileScript != NIL_RTFILE)
    850850            {
    851                 rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)scriptRun, 2, pVM, FileScript);
     851                rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)scriptRun, 2, pVM, FileScript);
    852852                AssertReleaseRC(rc);
    853853                rc = pReq1->iStatus;
     
    877877                    if (RT_SUCCESS(rc))
    878878                    {
    879                         rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)EMR3RawSetMode, 2, pVM, EMRAW_NONE);
     879                        rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)EMR3RawSetMode, 2, pVM, EMRAW_NONE);
    880880                        AssertReleaseRC(rc);
    881881                        VMR3ReqFree(pReq1);
  • trunk/src/VBox/VMM/testcase/tstMicro.cpp

    r18927 r19300  
    354354         */
    355355        PVMREQ pReq1 = NULL;
    356         rc = VMR3ReqCallVoid(pVM, VMREQDEST_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)doit, 1, pVM);
     356        rc = VMR3ReqCallVoid(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)doit, 1, pVM);
    357357        AssertRC(rc);
    358358        VMR3ReqFree(pReq1);
  • trunk/src/VBox/VMM/testcase/tstVMM-2.cpp

    r14831 r19300  
    363363        {
    364364            PVMREQ pReq;
    365             rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)VMR3PowerOn, 1, pVM);
     365            rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)VMR3PowerOn, 1, pVM);
    366366            if (RT_SUCCESS(rc))
    367367            {
     
    378378                     * Power Off the VM.
    379379                     */
    380                     rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)VMR3PowerOff, 1, pVM);
     380                    rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)VMR3PowerOff, 1, pVM);
    381381                    if (RT_SUCCESS(rc))
    382382                    {
  • trunk/src/VBox/VMM/testcase/tstVMM-HwAccm.cpp

    r14831 r19300  
    9494        RTPrintf(TESTCASE ": Testing...\n");
    9595        PVMREQ pReq1 = NULL;
    96         rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)VMMDoHwAccmTest, 1, pVM);
     96        rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)VMMDoHwAccmTest, 1, pVM);
    9797        AssertRC(rc);
    9898        VMR3ReqFree(pReq1);
  • trunk/src/VBox/VMM/testcase/tstVMM.cpp

    r17364 r19300  
    7676        RTPrintf(TESTCASE ": Testing...\n");
    7777        PVMREQ pReq1 = NULL;
    78         rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)VMMDoTest, 1, pVM);
     78        rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)VMMDoTest, 1, pVM);
    7979        AssertRC(rc);
    8080        VMR3ReqFree(pReq1);
  • trunk/src/VBox/VMM/testcase/tstVMMFork.cpp

    r14831 r19300  
    137137                RTPrintf(TESTCASE ": testing VM after fork.\n");
    138138                PVMREQ pReq1 = NULL;
    139                 rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)VMMDoTest, 1, pVM);
     139                rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)VMMDoTest, 1, pVM);
    140140                AssertRC(rc);
    141141                VMR3ReqFree(pReq1);
  • trunk/src/VBox/VMM/testcase/tstVMREQ.cpp

    r18645 r19300  
    135135
    136136    PVMREQ pReq;
    137     int rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)PassVACallback, 5,
     137    int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)PassVACallback, 5,
    138138                         pVM, _4K, _1G, pszFormat, pvVA);
    139139    if (RT_SUCCESS(rc))
     
    157157    va_start(va1, pszFormat);
    158158    PVMREQ pReq;
    159     int rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)PassVACallback, 5,
     159    int rc = VMR3ReqCall(pVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)PassVACallback, 5,
    160160                         pVM, _4K, _1G, pszFormat, &va1);
    161161    if (RT_SUCCESS(rc))
     
    186186        for (iReq = 0; iReq < cReqs; iReq++)
    187187        {
    188             rc = VMR3ReqAlloc(pVM, &apReq[iReq], VMREQTYPE_INTERNAL, VMREQDEST_ANY);
     188            rc = VMR3ReqAlloc(pVM, &apReq[iReq], VMREQTYPE_INTERNAL, VMCPUID_ANY);
    189189            if (RT_FAILURE(rc))
    190190            {
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