VirtualBox

Changeset 79689 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 11, 2019 11:31:56 AM (6 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Nested VMX: bugref:9180 Added HMVMX_ALWAYS_CLEAN_TRANSIENT debug option.

File:
1 edited

Legend:

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

    r79687 r79689  
    5050# define HMVMX_ALWAYS_SAVE_FULL_GUEST_STATE
    5151# define HMVMX_ALWAYS_SYNC_FULL_GUEST_STATE
     52# define HMVMX_ALWAYS_CLEAN_TRANSIENT
    5253# define HMVMX_ALWAYS_CHECK_GUEST_STATE
    5354# define HMVMX_ALWAYS_TRAP_ALL_XCPTS
     
    1143911440    ASMSetFlags(pVmxTransient->fEFlags);                                /* Enable interrupts. */
    1144011441    Assert(!VMMRZCallRing3IsEnabled(pVCpu));
     11442
     11443#ifdef HMVMX_ALWAYS_CLEAN_TRANSIENT
     11444    /*
     11445     * Clean all the VMCS fields in the transient structure before reading
     11446     * anything from the VMCS.
     11447     */
     11448    pVmxTransient->uExitReason            = 0;
     11449    pVmxTransient->uExitIntErrorCode      = 0;
     11450    pVmxTransient->uExitQual              = 0;
     11451    pVmxTransient->uGuestLinearAddr       = 0;
     11452    pVmxTransient->uExitIntInfo           = 0;
     11453    pVmxTransient->cbInstr                = 0;
     11454    pVmxTransient->ExitInstrInfo.u        = 0;
     11455    pVmxTransient->uEntryIntInfo          = 0;
     11456    pVmxTransient->uEntryXcptErrorCode    = 0;
     11457    pVmxTransient->cbEntryInstr           = 0;
     11458    pVmxTransient->uIdtVectoringInfo      = 0;
     11459    pVmxTransient->uIdtVectoringErrorCode = 0;
     11460#endif
    1144111461
    1144211462    /*
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