VirtualBox

Changeset 10723 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 17, 2008 12:49:31 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33455
Message:

Missing fixes for VMMR0_DO_RAW_RUN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMTests.cpp

    r9656 r10723  
    7070    CPUMPushHyper(pVM, GCPtrEP);                /* what to call */
    7171    CPUMSetHyperEIP(pVM, pVM->vmm.s.pfnGCCallTrampoline);
    72     return SUPCallVMMR0(pVM->pVMR0, VMMR0_DO_RAW_RUN, NULL);
     72    rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN);
     73    if (RT_LIKELY(rc == VINF_SUCCESS))
     74        rc = pVM->vmm.s.iLastGCRc;
     75    return rc;
    7376}
    7477
     
    104107    CPUMPushHyper(pVM, GCPtrEP);                /* what to call */
    105108    CPUMSetHyperEIP(pVM, pVM->vmm.s.pfnGCCallTrampoline);
    106     rc = SUPCallVMMR0(pVM->pVMR0, VMMR0_DO_RAW_RUN, NULL);
     109    rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN);
     110    if (RT_LIKELY(rc == VINF_SUCCESS))
     111        rc = pVM->vmm.s.iLastGCRc;
    107112    bool fDump = false;
    108113    if (rc != rcExpect)
     
    347352        do
    348353        {
    349             rc = SUPCallVMMR0(pVM->pVMR0, VMMR0_DO_RAW_RUN, NULL);
     354            rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN);
     355            if (RT_LIKELY(rc == VINF_SUCCESS))
     356                rc = pVM->vmm.s.iLastGCRc;
    350357            if (VBOX_FAILURE(rc))
    351358            {
     
    398405
    399406            uint64_t TickThisStart = ASMReadTSC();
    400             rc = SUPCallVMMR0(pVM->pVMR0, VMMR0_DO_RAW_RUN, NULL);
     407            rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN);
     408            if (RT_LIKELY(rc == VINF_SUCCESS))
     409                rc = pVM->vmm.s.iLastGCRc;
    401410            uint64_t TickThisElapsed = ASMReadTSC() - TickThisStart;
    402411            if (VBOX_FAILURE(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