VirtualBox

Changeset 77746 in vbox for trunk


Ignore:
Timestamp:
Mar 18, 2019 9:18:18 AM (6 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested VMX: bugref:9180 Renamed VMX_V_VMCS_STATE_XXX to VMX_V_VMCS_LAUNCH_STATE_XXX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h

    r77717 r77746  
    75697569    {
    75707570        /* VMLAUNCH with non-clear VMCS. */
    7571         if (pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState == VMX_V_VMCS_STATE_CLEAR)
     7571        if (pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState == VMX_V_VMCS_LAUNCH_STATE_CLEAR)
    75727572        { /* likely */ }
    75737573        else
     
    75837583    {
    75847584        /* VMRESUME with non-launched VMCS. */
    7585         if (pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState == VMX_V_VMCS_STATE_LAUNCHED)
     7585        if (pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState == VMX_V_VMCS_LAUNCH_STATE_LAUNCHED)
    75867586        { /* likely */ }
    75877587        else
     
    76437643                                /* VMLAUNCH instruction must update the VMCS launch state. */
    76447644                                if (uInstrId == VMXINSTRID_VMLAUNCH)
    7645                                     pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState = VMX_V_VMCS_STATE_LAUNCHED;
     7645                                    pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState = VMX_V_VMCS_LAUNCH_STATE_LAUNCHED;
    76467646
    76477647                                /* Perform the VMX transition (PGM updates). */
     
    82998299     * to 'clear'.
    83008300     */
    8301     uint8_t const fVmcsStateClear = VMX_V_VMCS_STATE_CLEAR;
     8301    uint8_t const fVmcsLaunchStateClear = VMX_V_VMCS_LAUNCH_STATE_CLEAR;
    83028302    if (   IEM_VMX_HAS_CURRENT_VMCS(pVCpu)
    83038303        && IEM_VMX_GET_CURRENT_VMCS(pVCpu) == GCPhysVmcs)
     
    83058305        Assert(GCPhysVmcs != NIL_RTGCPHYS);                     /* Paranoia. */
    83068306        Assert(pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs));
    8307         pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState = fVmcsStateClear;
     8307        pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState = fVmcsLaunchStateClear;
    83088308        iemVmxCommitCurrentVmcsToMemory(pVCpu);
    83098309        Assert(!IEM_VMX_HAS_CURRENT_VMCS(pVCpu));
     
    83118311    else
    83128312    {
    8313         AssertCompileMemberSize(VMXVVMCS, fVmcsState, sizeof(fVmcsStateClear));
     8313        AssertCompileMemberSize(VMXVVMCS, fVmcsState, sizeof(fVmcsLaunchStateClear));
    83148314        rcStrict = PGMPhysSimpleWriteGCPhys(pVCpu->CTX_SUFF(pVM), GCPhysVmcs + RT_UOFFSETOF(VMXVVMCS, fVmcsState),
    8315                                             (const void *)&fVmcsStateClear, sizeof(fVmcsStateClear));
     8315                                            (const void *)&fVmcsLaunchStateClear, sizeof(fVmcsLaunchStateClear));
    83168316        if (RT_FAILURE(rcStrict))
    83178317            return rcStrict;
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