VirtualBox

Changeset 20864 in vbox for trunk/src/VBox/VMM/VMM.cpp


Ignore:
Timestamp:
Jun 23, 2009 7:19:42 PM (15 years ago)
Author:
vboxsync
Message:

SUP,*: API cleanup.

File:
1 edited

Legend:

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

    r20857 r20864  
    177177     * Register the Ring-0 VM handle with the session for fast ioctl calls.
    178178     */
    179     rc = SUPSetVMForFastIOCtl(pVM->pVMR0);
     179    rc = SUPR3SetVMForFastIOCtl(pVM->pVMR0);
    180180    if (RT_FAILURE(rc))
    181181        return rc;
     
    510510        rc = VINF_SUCCESS;
    511511#else
    512         rc = SUPCallVMMR0Ex(pVM->pVMR0, 0 /* VCPU 0 */, VMMR0_DO_VMMR0_INIT, VMMGetSvnRev(), NULL);
     512        rc = SUPR3CallVMMR0Ex(pVM->pVMR0, 0 /*idCpu*/, VMMR0_DO_VMMR0_INIT, VMMGetSvnRev(), NULL);
    513513#endif
    514514        /*
     
    584584            rc = VINF_SUCCESS;
    585585#else
    586             rc = SUPCallVMMR0(pVM->pVMR0, 0 /* VCPU 0 */, VMMR0_DO_CALL_HYPERVISOR, NULL);
     586            rc = SUPR3CallVMMR0(pVM->pVMR0, 0 /* VCPU 0 */, VMMR0_DO_CALL_HYPERVISOR, NULL);
    587587#endif
    588588#ifdef LOG_ENABLED
     
    637637        rc = VINF_SUCCESS;
    638638#else
    639         rc = SUPCallVMMR0Ex(pVM->pVMR0, 0 /* VCPU 0 */, VMMR0_DO_VMMR0_TERM, 0, NULL);
     639        rc = SUPR3CallVMMR0Ex(pVM->pVMR0, 0 /*idCpu*/, VMMR0_DO_VMMR0_TERM, 0, NULL);
    640640#endif
    641641        /*
     
    11461146            rc = VERR_GENERAL_FAILURE;
    11471147#else
    1148             rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN, 0);
     1148            rc = SUPR3CallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN, 0);
    11491149            if (RT_LIKELY(rc == VINF_SUCCESS))
    11501150                rc = pVCpu->vmm.s.iLastGZRc;
     
    11971197            rc = VERR_GENERAL_FAILURE;
    11981198#else
    1199             rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_HWACC_RUN, pVCpu->idCpu);
     1199            rc = SUPR3CallVMMR0Fast(pVM->pVMR0, VMMR0_DO_HWACC_RUN, pVCpu->idCpu);
    12001200            if (RT_LIKELY(rc == VINF_SUCCESS))
    12011201                rc = pVCpu->vmm.s.iLastGZRc;
     
    16971697            rc = VERR_GENERAL_FAILURE;
    16981698#else
    1699             rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN, 0);
     1699            rc = SUPR3CallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN, 0);
    17001700            if (RT_LIKELY(rc == VINF_SUCCESS))
    17011701                rc = pVCpu->vmm.s.iLastGZRc;
     
    17321732
    17331733/**
    1734  * Wrapper for SUPCallVMMR0Ex which will deal with
    1735  * VINF_VMM_CALL_HOST returns.
     1734 * Wrapper for SUPR3CallVMMR0Ex which will deal with VINF_VMM_CALL_HOST returns.
    17361735 *
    17371736 * @returns VBox status code.
     
    17391738 * @param   uOperation  Operation to execute.
    17401739 * @param   u64Arg      Constant argument.
    1741  * @param   pReqHdr     Pointer to a request header. See SUPCallVMMR0Ex for
     1740 * @param   pReqHdr     Pointer to a request header. See SUPR3CallVMMR0Ex for
    17421741 *                      details.
    17431742 */
     
    17561755        rc = VERR_GENERAL_FAILURE;
    17571756#else
    1758         rc = SUPCallVMMR0Ex(pVM->pVMR0, pVCpu->idCpu, uOperation, u64Arg, pReqHdr);
     1757        rc = SUPR3CallVMMR0Ex(pVM->pVMR0, pVCpu->idCpu, uOperation, u64Arg, pReqHdr);
    17591758#endif
    17601759        /*
     
    18061805            rc = VERR_GENERAL_FAILURE;
    18071806#else
    1808             rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN, 0);
     1807            rc = SUPR3CallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN, 0);
    18091808            if (RT_LIKELY(rc == VINF_SUCCESS))
    18101809                rc = pVCpu->vmm.s.iLastGZRc;
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