VirtualBox

Changeset 80630 in vbox


Ignore:
Timestamp:
Sep 6, 2019 11:03:24 AM (5 years ago)
Author:
vboxsync
Message:

VMM/HM: Mask the VM-exit reason (thereby making off the error bit) to work for error VM-exits like invalid-guest state etc.

File:
1 edited

Legend:

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

    r80333 r80630  
    856856VMM_INT_DECL(const char *) HMGetVmxExitName(uint32_t uExit)
    857857{
    858     if (uExit <= MAX_EXITREASON_VTX)
    859     {
    860         Assert(uExit < RT_ELEMENTS(g_apszVmxExitReasons));
    861         return g_apszVmxExitReasons[uExit];
     858    uint16_t const uReason = VMX_EXIT_REASON_BASIC(uExit);
     859    if (uReason <= MAX_EXITREASON_VTX)
     860    {
     861        Assert(uReason < RT_ELEMENTS(g_apszVmxExitReasons));
     862        return g_apszVmxExitReasons[uReason];
    862863    }
    863864    return NULL;
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