VirtualBox

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


Ignore:
Timestamp:
Jan 28, 2021 2:45:14 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142481
Message:

VMM/HMVMX: Just pass NULL instead of pVM to pfnStartVm as it doesn't use it.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMR0A.asm

    r87457 r87462  
    699699;
    700700; @returns VBox status code
    701 ; @param    pVM        msc:rcx, gcc:rdi       The cross context VM structure. (unused)
     701; @param    NULL       msc:rcx, gcc:rdi       The cross context VM structure. (unused, passing NULL now)
    702702; @param    pVCpu      msc:rdx, gcc:rsi       The cross context virtual CPU structure of the calling EMT.
    703703; @param    fResume    msc:r8l, gcc:dl        Whether to use vmlauch/vmresume.
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r87443 r87462  
    68466846{
    68476847    /* Mark that HM is the keeper of all guest-CPU registers now that we're going to execute guest code. */
    6848     PCPUMCTX pCtx = &pVCpu->cpum.GstCtx;
    6849     pCtx->fExtrn |= HMVMX_CPUMCTX_EXTRN_ALL | CPUMCTX_EXTRN_KEEPER_HM;
     6848    pVCpu->cpum.GstCtx.fExtrn |= HMVMX_CPUMCTX_EXTRN_ALL | CPUMCTX_EXTRN_KEEPER_HM;
    68506849
    68516850    /** @todo Add stats for VMRESUME vs VMLAUNCH. */
    6852 
    6853     /*
    6854      * 64-bit Windows uses XMM registers in the kernel as the Microsoft compiler expresses
    6855      * floating-point operations using SSE instructions. Some XMM registers (XMM6-XMM15) are
    6856      * callee-saved and thus the need for this XMM wrapper.
    6857      *
    6858      * See MSDN "Configuring Programs for 64-bit/x64 Software Conventions / Register Usage".
    6859      */
    68606851    bool const fResumeVM = RT_BOOL(pVmxTransient->pVmcsInfo->fVmcsState & VMX_V_VMCS_LAUNCH_STATE_LAUNCHED);
    6861     PVMCC pVM = pVCpu->CTX_SUFF(pVM);
    6862     int rc = pVCpu->hm.s.vmx.pfnStartVm(pVM, pVCpu, fResumeVM);
     6852    int rc = pVCpu->hm.s.vmx.pfnStartVm(NULL /*pVCpu->CTX_SUFF(pVM) - unused*/, pVCpu, fResumeVM);
    68636853    AssertMsg(rc <= VINF_SUCCESS, ("%Rrc\n", rc));
    68646854    return rc;
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