VirtualBox

Changeset 99361 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Apr 10, 2023 5:54:07 AM (20 months ago)
Author:
vboxsync
Message:

VMM/IEM: Nested VMX: bugref:10318 Added IEM_VMX_VMENTRY_FAILED_RET_2 to also log the return code.

File:
1 edited

Legend:

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

    r99318 r99361  
    161161    { \
    162162        LogRel(("%s: VM-entry failed! enmDiag=%u (%s) -> %s\n", (a_pszInstr), (a_VmxDiag), \
     163               HMGetVmxDiagDesc(a_VmxDiag), (a_pszFailure))); \
     164        (a_pVCpu)->cpum.GstCtx.hwvirt.vmx.enmDiag = (a_VmxDiag); \
     165        return VERR_VMX_VMENTRY_FAILED; \
     166    } while (0)
     167
     168/** Marks a VM-entry failure with an return code, diagnostic reason, logs and
     169 *  returns. */
     170# define IEM_VMX_VMENTRY_FAILED_RET_2(a_pVCpu, a_pszInstr, a_pszFailure, a_VmxDiag, a_rc) \
     171    do \
     172    { \
     173        LogRel(("%s: VM-entry failed! rc=%Rrc enmDiag=%u (%s) -> %s\n", (a_pszInstr), (a_rc), (a_VmxDiag), \
    163174               HMGetVmxDiagDesc(a_VmxDiag), (a_pszFailure))); \
    164175        (a_pVCpu)->cpum.GstCtx.hwvirt.vmx.enmDiag = (a_VmxDiag); \
     
    71867197        { /* likely */ }
    71877198        else
    7188             IEM_VMX_VMENTRY_FAILED_RET(pVCpu, pszInstr, pszFailure, kVmxVDiag_Vmentry_AddrApicAccessHandlerReg);
     7199            IEM_VMX_VMENTRY_FAILED_RET_2(pVCpu, pszInstr, pszFailure, kVmxVDiag_Vmentry_AddrApicAccessHandlerReg, rc);
    71897200    }
    71907201
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