VirtualBox

Changeset 48204 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 30, 2013 5:04:08 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Better parameters.

File:
1 edited

Legend:

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

    r48200 r48204  
    17371737 * VMCB.
    17381738 *
    1739  * @param   pVM         Pointer to the VM.
    17401739 * @param   pVCpu       Pointer to the VMCPU.
     1740 * @param   pVmcb       Pointer to the VMCB.
    17411741 * @param   pCtx        Pointer to the guest-CPU context.
    17421742 *
    17431743 * @remarks No-long-jump zone!!!
    17441744 */
    1745 static void hmR0VmxLoadSharedState(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
     1745static void hmR0VmxLoadSharedState(PVMCPU pVCpu, PSVMVMCB pVmcb, PCPUMCTX pCtx)
    17461746{
    17471747    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    17481748    Assert(!VMMRZCallRing3IsEnabled(pVCpu));
    1749     PSVMVMCB pVmcb = (PSVMVMCB)pVCpu->hm.s.svm.pvVmcb;
    17501749
    17511750    if (pVCpu->hm.s.fContextUseFlags & HM_CHANGED_GUEST_CR0)
     
    28322831
    28332832    /* Load the state shared between host and guest (FPU, debug). */
     2833    PSVMVMCB pVmcb = (PSVMVMCB)pVCpu->hm.s.svm.pvVmcb;
    28342834    if (pVCpu->hm.s.fContextUseFlags & HM_CHANGED_HOST_GUEST_SHARED_STATE)
    2835         hmR0VmxLoadSharedState(pVM, pVCpu, pCtx);
     2835        hmR0VmxLoadSharedState(pVCpu, pVmcb, pCtx);
    28362836    pVCpu->hm.s.fContextUseFlags &= ~HM_CHANGED_HOST_CONTEXT;       /* Preemption might set this, nothing to do on AMD-V. */
    28372837    AssertMsg(!pVCpu->hm.s.fContextUseFlags, ("fContextUseFlags=%#x\n", pVCpu->hm.s.fContextUseFlags));
    28382838
    28392839    /* If VMCB Clean Bits isn't supported by the CPU, simply mark all state-bits as dirty, indicating (re)load-from-VMCB. */
    2840     PSVMVMCB pVmcb = (PSVMVMCB)pVCpu->hm.s.svm.pvVmcb;
    28412840    if (!(pVM->hm.s.svm.u32Features & AMD_CPUID_SVM_FEATURE_EDX_VMCB_CLEAN))
    28422841        pVmcb->ctrl.u64VmcbCleanBits = 0;
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