VirtualBox

Changeset 62601 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jul 27, 2016 3:46:22 PM (8 years ago)
Author:
vboxsync
Message:

VMM: Unused parameters.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

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

    r62478 r62601  
    272272static void hmR0SvmSetMsrPermission(PVMCPU pVCpu, unsigned uMsr, SVMMSREXITREAD enmRead, SVMMSREXITWRITE enmWrite);
    273273static void hmR0SvmPendingEventToTrpmTrap(PVMCPU pVCpu);
    274 static void hmR0SvmLeave(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx);
     274static void hmR0SvmLeave(PVMCPU pVCpu);
    275275
    276276/** @name \#VMEXIT handlers.
     
    17591759            VMCPU_ASSERT_EMT(pVCpu);
    17601760
    1761             PVM         pVM  = pVCpu->CTX_SUFF(pVM);
    1762             PCPUMCTX    pCtx = CPUMQueryGuestCtxPtr(pVCpu);
    1763 
    17641761            /* No longjmps (log-flush, locks) in this fragile context. */
    17651762            VMMRZCallRing3Disable(pVCpu);
     
    17671764            if (!pVCpu->hm.s.fLeaveDone)
    17681765            {
    1769                 hmR0SvmLeave(pVM, pVCpu, pCtx);
     1766                hmR0SvmLeave(pVCpu);
    17701767                pVCpu->hm.s.fLeaveDone = true;
    17711768            }
     
    20802077 * (longjmp, preemption, voluntary exits to ring-3) from AMD-V.
    20812078 *
    2082  * @param   pVM         The cross context VM structure.
    20832079 * @param   pVCpu       The cross context virtual CPU structure.
    2084  * @param   pCtx        Pointer to the guest-CPU context.
    20852080 *
    20862081 * @remarks No-long-jmp zone!!!
    20872082 */
    2088 static void hmR0SvmLeave(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
     2083static void hmR0SvmLeave(PVMCPU pVCpu)
    20892084{
    20902085    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
     
    21322127 *
    21332128 * @returns VBox status code.
    2134  * @param   pVM         The cross context VM structure.
    21352129 * @param   pVCpu       The cross context virtual CPU structure.
    2136  * @param   pCtx        Pointer to the guest-CPU context.
    2137  */
    2138 static int hmR0SvmLeaveSession(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
     2130 */
     2131static int hmR0SvmLeaveSession(PVMCPU pVCpu)
    21392132{
    21402133    HM_DISABLE_PREEMPT();
     
    21462139    if (!pVCpu->hm.s.fLeaveDone)
    21472140    {
    2148         hmR0SvmLeave(pVM, pVCpu, pCtx);
     2141        hmR0SvmLeave(pVCpu);
    21492142        pVCpu->hm.s.fLeaveDone = true;
    21502143    }
     
    21712164 *
    21722165 * @returns VBox status code.
    2173  * @param   pVM         The cross context VM structure.
    21742166 * @param   pVCpu       The cross context virtual CPU structure.
    2175  * @param   pCtx        Pointer to the guest-CPU context.
    21762167 *
    21772168 * @remarks No-long-jmp zone!!!
    21782169 */
    2179 static int hmR0SvmLongJmpToRing3(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    2180 {
    2181     return hmR0SvmLeaveSession(pVM, pVCpu, pCtx);
     2170static int hmR0SvmLongJmpToRing3(PVMCPU pVCpu)
     2171{
     2172    return hmR0SvmLeaveSession(pVCpu);
    21822173}
    21832174
     
    22322223
    22332224    Log4(("hmR0SvmCallRing3Callback->hmR0SvmLongJmpToRing3\n"));
    2234     int rc = hmR0SvmLongJmpToRing3(pVCpu->CTX_SUFF(pVM), pVCpu, (PCPUMCTX)pvUser);
     2225    int rc = hmR0SvmLongJmpToRing3(pVCpu);
    22352226    AssertRCReturn(rc, rc);
    22362227
     
    22772268
    22782269    /* Sync. the necessary state for going back to ring-3. */
    2279     hmR0SvmLeaveSession(pVM, pVCpu, pCtx);
     2270    hmR0SvmLeaveSession(pVCpu);
    22802271    STAM_COUNTER_DEC(&pVCpu->hm.s.StatSwitchLongJmpToR3);
    22812272
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r62478 r62601  
    70967096 *
    70977097 * @returns VBox status code.
    7098  * @param   pVM                 The cross context VM structure.
    70997098 * @param   pVCpu               The cross context virtual CPU structure.
    71007099 * @param   pMixedCtx           Pointer to the guest-CPU context. The data may
     
    71057104 * @remarks No-long-jmp zone!!!
    71067105 */
    7107 static int hmR0VmxLeave(PVM pVM, PVMCPU pVCpu, PCPUMCTX pMixedCtx, bool fSaveGuestState)
     7106static int hmR0VmxLeave(PVMCPU pVCpu, PCPUMCTX pMixedCtx, bool fSaveGuestState)
    71087107{
    71097108    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
     
    72127211 *
    72137212 * @returns VBox status code.
    7214  * @param   pVM         The cross context VM structure.
    72157213 * @param   pVCpu       The cross context virtual CPU structure.
    72167214 * @param   pMixedCtx   Pointer to the guest-CPU context. The data may be
     
    72207218 * @remarks No-long-jmp zone!!!
    72217219 */
    7222 DECLINLINE(int) hmR0VmxLeaveSession(PVM pVM, PVMCPU pVCpu, PCPUMCTX pMixedCtx)
     7220DECLINLINE(int) hmR0VmxLeaveSession(PVMCPU pVCpu, PCPUMCTX pMixedCtx)
    72237221{
    72247222    HM_DISABLE_PREEMPT();
     
    72317229    if (!pVCpu->hm.s.fLeaveDone)
    72327230    {
    7233         int rc2 = hmR0VmxLeave(pVM, pVCpu, pMixedCtx, true /* fSaveGuestState */);
     7231        int rc2 = hmR0VmxLeave(pVCpu, pMixedCtx, true /* fSaveGuestState */);
    72347232        AssertRCReturnStmt(rc2, HM_RESTORE_PREEMPT(), rc2);
    72357233        pVCpu->hm.s.fLeaveDone = true;
     
    72607258 *
    72617259 * @returns VBox status code.
    7262  * @param   pVM         The cross context VM structure.
    72637260 * @param   pVCpu       The cross context virtual CPU structure.
    72647261 * @param   pMixedCtx   Pointer to the guest-CPU context. The data may be
     
    72687265 * @remarks No-long-jmp zone!!!
    72697266 */
    7270 DECLINLINE(int) hmR0VmxLongJmpToRing3(PVM pVM, PVMCPU pVCpu, PCPUMCTX pMixedCtx)
    7271 {
    7272     return hmR0VmxLeaveSession(pVM, pVCpu, pMixedCtx);
     7267DECLINLINE(int) hmR0VmxLongJmpToRing3(PVMCPU pVCpu, PCPUMCTX pMixedCtx)
     7268{
     7269    return hmR0VmxLeaveSession(pVCpu, pMixedCtx);
    72737270}
    72747271
     
    73287325
    73297326    /* Save guest state and restore host state bits. */
    7330     int rc = hmR0VmxLeaveSession(pVM, pVCpu, pMixedCtx);
     7327    int rc = hmR0VmxLeaveSession(pVCpu, pMixedCtx);
    73317328    AssertRCReturn(rc, rc);
    73327329    STAM_COUNTER_DEC(&pVCpu->hm.s.StatSwitchLongJmpToR3);
     
    74307427          enmOperation));
    74317428
    7432     int rc = hmR0VmxLongJmpToRing3(pVCpu->CTX_SUFF(pVM), pVCpu, (PCPUMCTX)pvUser);
     7429    int rc = hmR0VmxLongJmpToRing3(pVCpu, (PCPUMCTX)pvUser);
    74337430    AssertRCReturn(rc, rc);
    74347431
     
    82108207            VMCPU_ASSERT_EMT(pVCpu);
    82118208
    8212             PVM      pVM       = pVCpu->CTX_SUFF(pVM);
    82138209            PCPUMCTX pMixedCtx = CPUMQueryGuestCtxPtr(pVCpu);
    82148210
     
    82248220                /* Do -not- save guest-state here as we might already be in the middle of saving it (esp. bad if we are
    82258221                   holding the PGM lock while saving the guest state (see hmR0VmxSaveGuestControlRegs()). */
    8226                 hmR0VmxLeave(pVM, pVCpu, pMixedCtx, false /* fSaveGuestState */);
     8222                hmR0VmxLeave(pVCpu, pMixedCtx, false /* fSaveGuestState */);
    82278223                pVCpu->hm.s.fLeaveDone = true;
    82288224            }
     
    1302813024static int hmR0VmxExitXcptAC(PVMCPU pVCpu, PCPUMCTX pMixedCtx, PVMXTRANSIENT pVmxTransient)
    1302913025{
     13026    RT_NOREF_PV(pMixedCtx);
    1303013027    HMVMX_VALIDATE_EXIT_XCPT_HANDLER_PARAMS();
    1303113028
     
    1348513482static int hmR0VmxExitXcptGeneric(PVMCPU pVCpu, PCPUMCTX pMixedCtx, PVMXTRANSIENT pVmxTransient)
    1348613483{
     13484    RT_NOREF_PV(pMixedCtx);
    1348713485    HMVMX_VALIDATE_EXIT_XCPT_HANDLER_PARAMS();
    1348813486#ifndef HMVMX_ALWAYS_TRAP_ALL_XCPTS
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