VirtualBox

Changeset 47109 in vbox


Ignore:
Timestamp:
Jul 12, 2013 10:16:38 AM (12 years ago)
Author:
vboxsync
Message:

VMM: XCPT_NMI -> XCPT_OR_NMI. Name it like Intel does in the spec.

Location:
trunk
Files:
4 edited

Legend:

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

    r46942 r47109  
    589589#define VMX_EXIT_INVALID            -1
    590590/** 0 Exception or non-maskable interrupt (NMI). */
    591 #define VMX_EXIT_XCPT_NMI           0
     591#define VMX_EXIT_XCPT_OR_NMI        0
    592592/** 1 External interrupt. */
    593593#define VMX_EXIT_EXT_INT            1
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r47105 r47109  
    271271#endif
    272272
    273 HMVMX_EXIT_DECL hmR0VmxExitXcptNmi(PVMCPU pVCpu, PCPUMCTX pMixedCtx, PVMXTRANSIENT pVmxTransient);
     273HMVMX_EXIT_DECL hmR0VmxExitXcptOrNmi(PVMCPU pVCpu, PCPUMCTX pMixedCtx, PVMXTRANSIENT pVmxTransient);
    274274HMVMX_EXIT_DECL hmR0VmxExitExtInt(PVMCPU pVCpu, PCPUMCTX pMixedCtx, PVMXTRANSIENT pVmxTransient);
    275275HMVMX_EXIT_DECL hmR0VmxExitTripleFault(PVMCPU pVCpu, PCPUMCTX pMixedCtx, PVMXTRANSIENT pVmxTransient);
     
    348348static const PFNVMEXITHANDLER g_apfnVMExitHandlers[VMX_EXIT_MAX + 1] =
    349349{
    350  /* 00  VMX_EXIT_XCPT_NMI                */  hmR0VmxExitXcptNmi,
     350 /* 00  VMX_EXIT_XCPT_OR_NMI             */  hmR0VmxExitXcptOrNmi,
    351351 /* 01  VMX_EXIT_EXT_INT                 */  hmR0VmxExitExtInt,
    352352 /* 02  VMX_EXIT_TRIPLE_FAULT            */  hmR0VmxExitTripleFault,
     
    72007200        case VMX_EXIT_RDTSCP:                  rc = hmR0VmxExitRdtscp(pVCpu, pMixedCtx, pVmxTransient); break;
    72017201        case VMX_EXIT_APIC_ACCESS:             rc = hmR0VmxExitApicAccess(pVCpu, pMixedCtx, pVmxTransient); break;
    7202         case VMX_EXIT_XCPT_NMI:                rc = hmR0VmxExitXcptNmi(pVCpu, pMixedCtx, pVmxTransient); break;
     7202        case VMX_EXIT_XCPT_NMI:                rc = hmR0VmxExitXcptOrNmi(pVCpu, pMixedCtx, pVmxTransient); break;
    72037203        case VMX_EXIT_MOV_CRX:                 rc = hmR0VmxExitMovCRx(pVCpu, pMixedCtx, pVmxTransient); break;
    72047204        case VMX_EXIT_EXT_INT:                 rc = hmR0VmxExitExtInt(pVCpu, pMixedCtx, pVmxTransient); break;
     
    73487348
    73497349/**
    7350  * VM-exit handler for exceptions and NMIs (VMX_EXIT_XCPT_NMI).
    7351  */
    7352 HMVMX_EXIT_DECL hmR0VmxExitXcptNmi(PVMCPU pVCpu, PCPUMCTX pMixedCtx, PVMXTRANSIENT pVmxTransient)
     7350 * VM-exit handler for exceptions or NMIs (VMX_EXIT_XCPT_OR_NMI).
     7351 */
     7352HMVMX_EXIT_DECL hmR0VmxExitXcptOrNmi(PVMCPU pVCpu, PCPUMCTX pMixedCtx, PVMXTRANSIENT pVmxTransient)
    73537353{
    73547354    HMVMX_VALIDATE_EXIT_HANDLER_PARAMS();
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r47090 r47109  
    35173517    switch (exitReason)
    35183518    {
    3519     case VMX_EXIT_XCPT_NMI:             /* 0 Exception or non-maskable interrupt (NMI). */
     3519    case VMX_EXIT_XCPT_OR_NMI:          /* 0 Exception or non-maskable interrupt (NMI). */
    35203520    case VMX_EXIT_EXT_INT:              /* 1 External interrupt. */
    35213521    {
     
    48024802    switch (exitReason)
    48034803    {
    4804     case VMX_EXIT_XCPT_NMI:             /* 0 Exception or non-maskable interrupt (NMI). */
     4804    case VMX_EXIT_XCPT_OR_NMI:          /* 0 Exception or non-maskable interrupt (NMI). */
    48054805    case VMX_EXIT_EXT_INT:              /* 1 External interrupt. */
    48064806    case VMX_EXIT_EPT_VIOLATION:
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r47094 r47109  
    6262static const char * const g_apszVTxExitReasons[MAX_EXITREASON_STAT] =
    6363{
    64     EXIT_REASON(VMX_EXIT_XCPT_NMI           ,  0, "Exception or non-maskable interrupt (NMI)."),
     64    EXIT_REASON(VMX_EXIT_XCPT_OR_NMI        ,  0, "Exception or non-maskable interrupt (NMI)."),
    6565    EXIT_REASON(VMX_EXIT_EXT_INT            ,  1, "External interrupt."),
    6666    EXIT_REASON(VMX_EXIT_TRIPLE_FAULT       ,  2, "Triple fault."),
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