VirtualBox

Changeset 96964 in vbox


Ignore:
Timestamp:
Oct 2, 2022 10:02:06 PM (2 years ago)
Author:
vboxsync
Message:

VMM/IEM: Some nits in the VMX code - no real code changes. bugref:10092

File:
1 edited

Legend:

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

    r96961 r96964  
    75367536
    75377537/**
    7538  * Injects an event using TRPM given a VM-entry interruption info. and related
     7538 * Injects an event using TRPM given a VM-entry interruption info and related
    75397539 * fields.
    75407540 *
     
    75747574        Log(("%s: Injecting: fault_addr=%RGp\n", pszInstr, GCPtrFaultAddress));
    75757575    }
    7576     else
    7577     {
    7578         if (   uType == VMX_ENTRY_INT_INFO_TYPE_SW_INT
    7579             || uType == VMX_ENTRY_INT_INFO_TYPE_SW_XCPT
    7580             || uType == VMX_ENTRY_INT_INFO_TYPE_PRIV_SW_XCPT)
    7581         {
    7582             TRPMSetInstrLength(pVCpu, cbInstr);
    7583             Log(("%s: Injecting: instr_len=%u\n", pszInstr, cbInstr));
    7584         }
     7576    else if (   uType == VMX_ENTRY_INT_INFO_TYPE_SW_INT
     7577             || uType == VMX_ENTRY_INT_INFO_TYPE_SW_XCPT
     7578             || uType == VMX_ENTRY_INT_INFO_TYPE_PRIV_SW_XCPT)
     7579    {
     7580        TRPMSetInstrLength(pVCpu, cbInstr);
     7581        Log(("%s: Injecting: instr_len=%u\n", pszInstr, cbInstr));
    75857582    }
    75867583
     
    76347631         * However, we do it here on VM-entry as well because while it isn't visible to guest
    76357632         * software until VM-exit, when and if HM looks at the VMCS to continue nested-guest
    7636          * execution using hardware-assisted VMX, it will not be try to inject the event again.
     7633         * execution using hardware-assisted VMX, it will not try to inject the event again.
    76377634         *
    76387635         * See Intel spec. 24.8.3 "VM-Entry Controls for Event Injection".
     
    77267723    Assert(   uInstrId == VMXINSTRID_VMLAUNCH
    77277724           || uInstrId == VMXINSTRID_VMRESUME);
    7728     const char *pszInstr = uInstrId == VMXINSTRID_VMRESUME ? "vmresume" : "vmlaunch";
     7725    const char * const pszInstr = uInstrId == VMXINSTRID_VMRESUME ? "vmresume" : "vmlaunch";
    77297726
    77307727    /* Nested-guest intercept. */
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