VirtualBox

Changeset 72564 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jun 15, 2018 12:56:01 PM (7 years ago)
Author:
vboxsync
Message:

EM,TRPM,IOM: Improved the raw-mode exit history a little (just for the heck of it). bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/EMR3Dbg.cpp

    r72562 r72564  
    7171};
    7272
    73 VMM_INT_DECL(const char *) EMR3GetExitTypeName(uint32_t uExitType)
    74 {
    75     switch ((EMEXITTYPE)uExitType)
     73
     74/**
     75 * Translates EMEXITTYPE into a name.
     76 *
     77 * @returns Pointer to read-only name, NULL if unknown type.
     78 * @param   uExitType           The exit type to name.
     79 */
     80VMM_INT_DECL(const char *) EMR3GetExitTypeName(EMEXITTYPE enmExitType)
     81{
     82    switch (enmExitType)
    7683    {
    7784        case EMEXITTYPE_INVALID:            return "invalid";
     
    8592        case EMEXITTYPE_MSR_WRITE:          return "MSR write";
    8693        case EMEXITTYPE_CPUID:              return "CPUID";
     94        case EMEXITTYPE_RDTSC:              return "RDTSC";
     95        case EMEXITTYPE_MOV_CRX:            return "MOV CRx";
     96        case EMEXITTYPE_MOV_DRX:            return "MOV DRx";
     97
     98        /* Raw-mode only: */
     99        case EMEXITTYPE_INVLPG:             return "INVLPG";
     100        case EMEXITTYPE_LLDT:               return "LLDT";
     101        case EMEXITTYPE_RDPMC:              return "RDPMC";
     102        case EMEXITTYPE_CLTS:               return "CLTS";
     103        case EMEXITTYPE_STI:                return "STI";
     104        case EMEXITTYPE_INT:                return "INT";
     105        case EMEXITTYPE_SYSCALL:            return "SYSCALL";
     106        case EMEXITTYPE_SYSENTER:           return "SYSENTER";
     107        case EMEXITTYPE_HLT:                return "HLT";
    87108    }
    88109    return NULL;
    89110}
     111
    90112
    91113/**
     
    103125    {
    104126        case EMEXIT_F_KIND_EM:
    105             pszExitName = EMR3GetExitTypeName(uFlagsAndType & EMEXIT_F_TYPE_MASK);
     127            pszExitName = EMR3GetExitTypeName((EMEXITTYPE)(uFlagsAndType & EMEXIT_F_TYPE_MASK));
    106128            break;
    107129
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