VirtualBox

Changeset 74121 in vbox for trunk


Ignore:
Timestamp:
Sep 6, 2018 2:57:41 PM (6 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Fixed a minor bug in VM-entry failure detection.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/hm_vmx.h

    r74114 r74121  
    22152215 */
    22162216#define VMX_EXIT_REASON_BASIC(a)                                ((a) & 0xffff)
     2217#define VMX_EXIT_REASON_HAS_ENTRY_FAILED(a)                     (((a) >> 31) & 1)
    22172218/** @} */
    22182219
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r74073 r74121  
    88648864    rc     |= hmR0VmxReadEntryIntInfoVmcs(pVmxTransient);
    88658865    AssertRC(rc);
    8866     pVmxTransient->uExitReason    = (uint16_t)VMX_EXIT_REASON_BASIC(uExitReason);
    8867     pVmxTransient->fVMEntryFailed = VMX_ENTRY_INT_INFO_IS_VALID(pVmxTransient->uEntryIntInfo);
     8866    pVmxTransient->uExitReason    = VMX_EXIT_REASON_BASIC(uExitReason);
     8867    pVmxTransient->fVMEntryFailed = VMX_EXIT_REASON_HAS_ENTRY_FAILED(uExitReason);
    88688868
    88698869    if (rcVMRun == VINF_SUCCESS)
     
    89238923            }
    89248924
     8925            Assert(VMMRZCallRing3IsEnabled(pVCpu));
    89258926            return;
    89268927        }
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