VirtualBox

Changeset 73016 in vbox


Ignore:
Timestamp:
Jul 10, 2018 4:44:16 AM (6 years ago)
Author:
vboxsync
Message:

VMM/HM: Changed HM_CHANGED_XCPT_RAISED_MASK to HM_CHANGED_RAISED_XCPT_MASK to match VINF_EM_RAISED_XCPT.

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

Legend:

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

    r73015 r73016  
    61826182        {
    61836183            rcStrict = VINF_SUCCESS;
    6184             ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     6184            ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    61856185        }
    61866186        HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    62296229    {
    62306230        rcStrict = VINF_SUCCESS;
    6231         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     6231        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    62326232    }
    62336233    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    62596259    {
    62606260        rcStrict = VINF_SUCCESS;
    6261         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     6261        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    62626262    }
    62636263    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    63196319    {
    63206320        rcStrict = VINF_SUCCESS;
    6321         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     6321        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    63226322    }
    63236323    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    66056605    {
    66066606        rcStrict = VINF_SUCCESS;
    6607         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     6607        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    66086608    }
    66096609    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    67026702    {
    67036703        rcStrict = VINF_SUCCESS;
    6704         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     6704        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    67056705    }
    67066706    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    68316831    {
    68326832        rcStrict = VINF_SUCCESS;
    6833         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     6833        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    68346834    }
    68356835    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    77577757    {
    77587758        rcStrict = VINF_SUCCESS;
    7759         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     7759        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    77607760    }
    77617761    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    77957795    {
    77967796        rcStrict = VINF_SUCCESS;
    7797         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     7797        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    77987798    }
    77997799    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    78407840    {
    78417841        rcStrict = VINF_SUCCESS;
    7842         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     7842        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    78437843    }
    78447844    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    78747874    {
    78757875        rcStrict = VINF_SUCCESS;
    7876         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     7876        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    78777877    }
    78787878    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    79027902    {
    79037903        rcStrict = VINF_SUCCESS;
    7904         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     7904        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    79057905    }
    79067906    HMSVM_CHECK_SINGLE_STEP(pVCpu, rcStrict);
     
    79357935    {
    79367936        rcStrict = VINF_SUCCESS;
    7937         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     7937        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    79387938    }
    79397939
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r73002 r73016  
    1109511095        else if (rcStrict == VINF_IEM_RAISED_XCPT)
    1109611096        {
    11097             ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     11097            ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    1109811098            rcStrict = VINF_SUCCESS;
    1109911099        }
     
    1116011160    else if (rcStrict == VINF_IEM_RAISED_XCPT)
    1116111161    {
    11162         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     11162        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    1116311163        rcStrict = VINF_SUCCESS;
    1116411164    }
     
    1118911189    else if (rcStrict == VINF_IEM_RAISED_XCPT)
    1119011190    {
    11191         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     11191        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    1119211192        rcStrict = VINF_SUCCESS;
    1119311193    }
     
    1128411284    else if (rcStrict == VINF_IEM_RAISED_XCPT)
    1128511285    {
    11286         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     11286        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    1128711287        rcStrict = VINF_SUCCESS;
    1128811288    }
     
    1151611516    VBOXSTRICTRC rcStrict = IEMExecDecodedXsetbv(pVCpu, pVmxTransient->cbInstr);
    1151711517    ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, rcStrict != VINF_IEM_RAISED_XCPT ? HM_CHANGED_GUEST_RIP | HM_CHANGED_GUEST_RFLAGS
    11518                                                                                 : HM_CHANGED_XCPT_RAISED_MASK);
     11518                                                                                : HM_CHANGED_RAISED_XCPT_MASK);
    1151911519
    1152011520    PCCPUMCTX pCtx = &pVCpu->cpum.GstCtx;
     
    1170711707    else if (rcStrict == VINF_IEM_RAISED_XCPT)
    1170811708    {
    11709         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     11709        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    1171011710        rcStrict = VINF_SUCCESS;
    1171111711    }
     
    1183711837    else if (rcStrict == VINF_IEM_RAISED_XCPT)
    1183811838    {
    11839         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     11839        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    1184011840        rcStrict = VINF_SUCCESS;
    1184111841    }
     
    1203812038    if (rcStrict == VINF_IEM_RAISED_XCPT)
    1203912039    {
    12040         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_XCPT_RAISED_MASK);
     12040        ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_RAISED_XCPT_MASK);
    1204112041        rcStrict = VINF_SUCCESS;
    1204212042    }
  • trunk/src/VBox/VMM/include/HMInternal.h

    r73015 r73016  
    158158/** Mask of what state might have changed when IEM raised an exception.
    159159 *  This is a based on IEM_CPUMCTX_EXTRN_XCPT_MASK. */
    160 #define HM_CHANGED_XCPT_RAISED_MASK              (  HM_CHANGED_GUEST_GPRS_MASK  \
     160#define HM_CHANGED_RAISED_XCPT_MASK              (  HM_CHANGED_GUEST_GPRS_MASK  \
    161161                                                  | HM_CHANGED_GUEST_RIP        \
    162162                                                  | HM_CHANGED_GUEST_RFLAGS     \
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