VirtualBox

Changeset 47089 in vbox


Ignore:
Timestamp:
Jul 11, 2013 11:29:17 AM (12 years ago)
Author:
vboxsync
Message:

VMM/HM: Additional HM error code for certain gurus. Later use it for Intel as well and unify with 'lasterror'.

Location:
trunk/src/VBox/VMM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r47080 r47089  
    30503050                        default:
    30513051                            AssertMsgFailed(("hmR0SvmHandleExit: Unexpected exit caused by exception %#x\n", Event.n.u8Vector));
     3052                            pVCpu->hm.s.u32HMError = Event.n.u8Vector;
    30523053                            return VERR_SVM_UNEXPECTED_XCPT_EXIT;
    30533054                    }
     
    30623063                {
    30633064                    AssertMsgFailed(("hmR0SvmHandleExit: Unknown exit code %#x\n", u32ExitCode));
     3065                    pVCpu->hm.s.u32HMError = u32ExitCode;
    30643066                    return VERR_SVM_UNKNOWN_EXIT;
    30653067                }
     
    33473349
    33483350            default:
    3349                 AssertMsgFailedReturn(("Unexpected patch type %d\n", pPatch->enmType), VERR_SVM_UNEXPECTED_PATCH_TYPE);
    3350                 break;
     3351                AssertMsgFailed(("Unexpected patch type %d\n", pPatch->enmType));
     3352                pVCpu->hm.s.u32HMError = pPatch->enmType;
     3353                return VERR_SVM_UNEXPECTED_PATCH_TYPE;
    33513354        }
    33523355    }
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r47069 r47089  
    29742974            case VERR_VMX_INVALID_VMXON_PTR:
    29752975                break;
     2976
     2977            case VERR_SVM_UNKNOWN_EXIT:
     2978            case VERR_SVM_UNEXPECTED_EXIT:
     2979            case VERR_SVM_UNEXPECTED_PATCH_TYPE:
     2980            case VERR_SVM_UNEXPECTED_XCPT_EXIT:
     2981                LogRel(("HM: CPU%d HM error          %#x\n", i, pVM->aCpus[i].hm.s.u32HMError));
     2982                break;
    29762983        }
    29772984    }
  • trunk/src/VBox/VMM/include/EMHandleRCTmpl.h

    r46420 r47089  
    347347        case VERR_VMX_INVALID_GUEST_STATE:
    348348        case VERR_VMX_UNABLE_TO_START_VM:
     349        case VERR_SVM_UNKNOWN_EXIT:
     350        case VERR_SVM_UNEXPECTED_EXIT:
     351        case VERR_SVM_UNEXPECTED_PATCH_TYPE:
     352        case VERR_SVM_UNEXPECTED_XCPT_EXIT:
    349353            HMR3CheckError(pVM, rc);
    350354            break;
  • trunk/src/VBox/VMM/include/HMInternal.h

    r46945 r47089  
    544544    /** HM_CHANGED_* flags. */
    545545    uint32_t                    fContextUseFlags;
    546     /** Id of the last cpu we were executing code on (NIL_RTCPUID for the first time) */
     546    /** Id of the last cpu we were executing code on (NIL_RTCPUID for the first
     547     *  time). */
    547548    RTCPUID                     idLastCpu;
    548     /** TLB flush count */
     549    /** TLB flush count. */
    549550    uint32_t                    cTlbFlushes;
    550     /** Current ASID in use by the VM */
     551    /** Current ASID in use by the VM. */
    551552    uint32_t                    uCurrentAsid;
    552     uint32_t                    u32Alignment;
     553    /** An additional error code used for some gurus. */
     554    uint32_t                    u32HMError;
    553555
    554556    /** Host's TSC_AUX MSR (used when RDTSCP doesn't cause VM-exits). */
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