VirtualBox

Changeset 64837 in vbox


Ignore:
Timestamp:
Dec 12, 2016 5:03:28 PM (8 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Fix VM-exit history update to be done *after* successful world-switch.

File:
1 edited

Legend:

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

    r64823 r64837  
    89468946    pVmxTransient->fVMEntryFailed = VMX_ENTRY_INTERRUPTION_INFO_IS_VALID(pVmxTransient->uEntryIntInfo);
    89478947
    8948     /* Update the VM-exit history array. */
    8949     HMCPU_EXIT_HISTORY_ADD(pVCpu, pVmxTransient->uExitReason);
    8950 
    89518948    /* If the VMLAUNCH/VMRESUME failed, we can bail out early. This does -not- cover VMX_EXIT_ERR_*. */
    89528949    if (RT_UNLIKELY(rcVMRun != VINF_SUCCESS))
     
    89568953        return;
    89578954    }
     8955
     8956    /* Update the VM-exit history array only if the world-switch was successful. */
     8957    HMCPU_EXIT_HISTORY_ADD(pVCpu, pVmxTransient->uExitReason);
    89588958
    89598959    if (RT_LIKELY(!pVmxTransient->fVMEntryFailed))
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