VirtualBox

Ignore:
Timestamp:
Jan 23, 2013 4:20:07 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83296
Message:

VMM,Main,Debugger,REM: VM API cleanup, prefering PUVM over PVM so we can use real reference counting and not have the memory backing the VM structure disappear on us.

File:
1 edited

Legend:

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

    r41965 r44340  
    6767    RTPrintf(TESTCASE ": Initializing...\n");
    6868    PVM pVM;
    69     int rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM);
     69    PUVM pUVM;
     70    int rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM, &pUVM);
    7071    if (RT_SUCCESS(rc))
    7172    {
     
    132133                RTPrintf(TESTCASE ": fork() returned fine.\n");
    133134                RTPrintf(TESTCASE ": testing VM after fork.\n");
    134                 VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMMDoTest, 1, pVM);
     135                VMR3ReqCallWaitU(pUVM, VMCPUID_ANY, (PFNRT)VMMDoTest, 1, pVM);
    135136
    136137                STAMR3Dump(pVM, "*");
     
    146147         * Cleanup.
    147148         */
    148         rc = VMR3PowerOff(pVM);
     149        rc = VMR3PowerOff(pUVM);
    149150        if (!RT_SUCCESS(rc))
    150151        {
     
    152153            rcErrors++;
    153154        }
    154         rc = VMR3Destroy(pVM);
     155        rc = VMR3Destroy(pUVM);
    155156        if (!RT_SUCCESS(rc))
    156157        {
     
    158159            rcErrors++;
    159160        }
     161        VMR3ReleaseUVM(pUVM);
    160162    }
    161163    else
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