VirtualBox

Changeset 80490 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 29, 2019 8:23:12 AM (5 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested VMX: bugref:9180 We should not be calling VM-exit from ring-0 when VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM is used. Assert and return a guru rc rather than VINF_EM_RAW_EMULATE_INSTR which can lead to harder to debug issues.

File:
1 edited

Legend:

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

    r80489 r80490  
    24452445# if defined(VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM) && !defined(IN_RING3)
    24462446    RT_NOREF3(pVCpu, uExitReason, u64ExitQual);
    2447     return VINF_EM_RAW_EMULATE_INSTR;
     2447    AssertMsgFailed(("VM-exit should only be invoked from ring-3 when nested-guest executes only in ring-3!\n"));
     2448    return VERR_IEM_IPE_7;
    24482449# else
    24492450    PVMXVVMCS pVmcs = pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs);
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