VirtualBox

Changeset 74564 in vbox for trunk


Ignore:
Timestamp:
Oct 2, 2018 5:59:22 AM (6 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested VMX: bugref:9180 Make sure we don't accidentally use the simple version of the instruction VM-exit for
instructions that require figuring out additional VM-exit information.

File:
1 edited

Legend:

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

    r74563 r74564  
    26522652    ExitInfo.uReason = uExitReason;
    26532653    ExitInfo.cbInstr = cbInstr;
     2654
     2655#ifdef VBOX_STRICT
     2656    /* To prevent us from shooting ourselves in the foot. Maybe remove later. */
     2657    switch (uExitReason)
     2658    {
     2659        case VMX_EXIT_INVEPT:
     2660        case VMX_EXIT_INVPCID:
     2661        case VMX_EXIT_LDTR_TR_ACCESS:
     2662        case VMX_EXIT_GDTR_IDTR_ACCESS:
     2663        case VMX_EXIT_VMCLEAR:
     2664        case VMX_EXIT_VMPTRLD:
     2665        case VMX_EXIT_VMPTRST:
     2666        case VMX_EXIT_VMREAD:
     2667        case VMX_EXIT_VMWRITE:
     2668        case VMX_EXIT_VMXON:
     2669        case VMX_EXIT_XRSTORS:
     2670        case VMX_EXIT_XSAVES:
     2671        case VMX_EXIT_RDRAND:
     2672        case VMX_EXIT_RDSEED:
     2673        case VMX_EXIT_IO_INSTR:
     2674            AssertMsgFailedReturn(("Use iemVmxVmexitInstrNeedsInfo for uExitReason=%u\n", uExitReason), VERR_IEM_IPE_5);
     2675            break;
     2676    }
     2677#endif
     2678
    26542679    return iemVmxVmexitInstrWithInfo(pVCpu, &ExitInfo);
    26552680}
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