VirtualBox

Changeset 74514 in vbox


Ignore:
Timestamp:
Sep 28, 2018 9:44:47 AM (6 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested VMX: bugref:9180 VM-exit intercepts for VMCALL and VMXON.

File:
1 edited

Legend:

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

    r74513 r74514  
    1616 */
    1717
    18 
    19 /**
    20  * Implements 'VMCALL'.
    21  */
    22 IEM_CIMPL_DEF_0(iemCImpl_vmcall)
    23 {
    24     /** @todo NSTVMX: intercept. */
    25 
    26     /* Join forces with vmmcall. */
    27     return IEM_CIMPL_CALL_1(iemCImpl_Hypercall, OP_VMCALL);
    28 }
    2918
    3019#ifdef VBOX_WITH_NESTED_HWVIRT_VMX
     
    56735662    {
    56745663        /* Nested-guest intercept. */
    5675         RT_NOREF(pExitInfo);
    5676         /** @todo NSTVMX: intercept. */
     5664        if (pExitInfo)
     5665            return iemVmxVmexitInstrWithInfo(pVCpu, pExitInfo);
     5666        return iemVmxVmexitInstrNeedsInfo(pVCpu, VMX_EXIT_VMXON, VMXINSTRID_NONE, cbInstr);
    56775667    }
    56785668
     
    58495839}
    58505840
     5841#endif  /* VBOX_WITH_NESTED_HWVIRT_VMX */
     5842
     5843
     5844/**
     5845 * Implements 'VMCALL'.
     5846 */
     5847IEM_CIMPL_DEF_0(iemCImpl_vmcall)
     5848{
     5849#ifdef VBOX_WITH_NESTED_HWVIRT_VMX
     5850    /* Nested-guest intercept. */
     5851    if (IEM_IS_VMX_NON_ROOT_MODE(pVCpu))
     5852        return iemVmxVmexitInstr(pVCpu, VMX_EXIT_VMCALL, cbInstr);
    58515853#endif
    58525854
     5855    /* Join forces with vmmcall. */
     5856    return IEM_CIMPL_CALL_1(iemCImpl_Hypercall, OP_VMCALL);
     5857}
     5858
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