Changeset 70001 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Dec 8, 2017 5:58:00 AM (7 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r69221 r70001 419 419 * Check if an SVM control/instruction intercept is set. 420 420 */ 421 # define IEM_IS_SVM_CTRL_INTERCEPT_SET(a_pVCpu, a_Intercept) (CPUMIsGuestSvmCtrlInterceptSet( IEM_GET_CTX(a_pVCpu), (a_Intercept)))421 # define IEM_IS_SVM_CTRL_INTERCEPT_SET(a_pVCpu, a_Intercept) (CPUMIsGuestSvmCtrlInterceptSet(a_pVCpu, IEM_GET_CTX(a_pVCpu), (a_Intercept))) 422 422 423 423 /** 424 424 * Check if an SVM read CRx intercept is set. 425 425 */ 426 # define IEM_IS_SVM_READ_CR_INTERCEPT_SET(a_pVCpu, a_uCr) (CPUMIsGuestSvmReadCRxInterceptSet( IEM_GET_CTX(a_pVCpu), (a_uCr)))426 # define IEM_IS_SVM_READ_CR_INTERCEPT_SET(a_pVCpu, a_uCr) (CPUMIsGuestSvmReadCRxInterceptSet(a_pVCpu, IEM_GET_CTX(a_pVCpu), (a_uCr))) 427 427 428 428 /** 429 429 * Check if an SVM write CRx intercept is set. 430 430 */ 431 # define IEM_IS_SVM_WRITE_CR_INTERCEPT_SET(a_pVCpu, a_uCr) (CPUMIsGuestSvmWriteCRxInterceptSet( IEM_GET_CTX(a_pVCpu), (a_uCr)))431 # define IEM_IS_SVM_WRITE_CR_INTERCEPT_SET(a_pVCpu, a_uCr) (CPUMIsGuestSvmWriteCRxInterceptSet(a_pVCpu, IEM_GET_CTX(a_pVCpu), (a_uCr))) 432 432 433 433 /** 434 434 * Check if an SVM read DRx intercept is set. 435 435 */ 436 # define IEM_IS_SVM_READ_DR_INTERCEPT_SET(a_pVCpu, a_uDr) (CPUMIsGuestSvmReadDRxInterceptSet( IEM_GET_CTX(a_pVCpu), (a_uDr)))436 # define IEM_IS_SVM_READ_DR_INTERCEPT_SET(a_pVCpu, a_uDr) (CPUMIsGuestSvmReadDRxInterceptSet(a_pVCpu, IEM_GET_CTX(a_pVCpu), (a_uDr))) 437 437 438 438 /** 439 439 * Check if an SVM write DRx intercept is set. 440 440 */ 441 # define IEM_IS_SVM_WRITE_DR_INTERCEPT_SET(a_pVCpu, a_uDr) (CPUMIsGuestSvmWriteDRxInterceptSet( IEM_GET_CTX(a_pVCpu), (a_uDr)))441 # define IEM_IS_SVM_WRITE_DR_INTERCEPT_SET(a_pVCpu, a_uDr) (CPUMIsGuestSvmWriteDRxInterceptSet(a_pVCpu, IEM_GET_CTX(a_pVCpu), (a_uDr))) 442 442 443 443 /** 444 444 * Check if an SVM exception intercept is set. 445 445 */ 446 # define IEM_IS_SVM_XCPT_INTERCEPT_SET(a_pVCpu, a_uVector) (CPUMIsGuestSvmXcptInterceptSet( IEM_GET_CTX(a_pVCpu), (a_uVector)))446 # define IEM_IS_SVM_XCPT_INTERCEPT_SET(a_pVCpu, a_uVector) (CPUMIsGuestSvmXcptInterceptSet(a_pVCpu, IEM_GET_CTX(a_pVCpu), (a_uVector))) 447 447 448 448 /** … … 13848 13848 { 13849 13849 if (CPUMIsGuestInSvmNestedHwVirtMode(pCtx)) 13850 fIntrEnabled = CPUMCanSvmNstGstTakePhysIntr(p Ctx);13850 fIntrEnabled = CPUMCanSvmNstGstTakePhysIntr(pVCpu, pCtx); 13851 13851 else 13852 13852 fIntrEnabled = pOrgCtx->eflags.Bits.u1IF; … … 15209 15209 { 15210 15210 if (CPUMIsGuestInSvmNestedHwVirtMode(pCtx)) 15211 fIntrEnabled = CPUMCanSvmNstGstTakePhysIntr(p Ctx);15211 fIntrEnabled = CPUMCanSvmNstGstTakePhysIntr(pVCpu, pCtx); 15212 15212 else 15213 15213 fIntrEnabled = pCtx->eflags.Bits.u1IF; … … 15275 15275 { 15276 15276 if (CPUMIsGuestInSvmNestedHwVirtMode(pCtx)) 15277 fIntrEnabled = CPUMCanSvmNstGstTakePhysIntr(p Ctx);15277 fIntrEnabled = CPUMCanSvmNstGstTakePhysIntr(pVCpu, pCtx); 15278 15278 else 15279 15279 fIntrEnabled = pCtx->eflags.Bits.u1IF; -
trunk/src/VBox/VMM/VMMAll/IEMAllCImplSvmInstr.cpp.h
r69765 r70001 328 328 */ 329 329 /* VMRUN must always be intercepted. */ 330 if (!CPUMIsGuestSvmCtrlInterceptSet(p Ctx, SVM_CTRL_INTERCEPT_VMRUN))330 if (!CPUMIsGuestSvmCtrlInterceptSet(pVCpu, pCtx, SVM_CTRL_INTERCEPT_VMRUN)) 331 331 { 332 332 Log(("iemSvmVmrun: VMRUN instruction not intercepted -> #VMEXIT\n")); … … 1002 1002 * Check if any MSRs are being intercepted. 1003 1003 */ 1004 Assert(CPUMIsGuestSvmCtrlInterceptSet(p Ctx, SVM_CTRL_INTERCEPT_MSR_PROT));1004 Assert(CPUMIsGuestSvmCtrlInterceptSet(pVCpu, pCtx, SVM_CTRL_INTERCEPT_MSR_PROT)); 1005 1005 Assert(CPUMIsGuestInSvmNestedHwVirtMode(pCtx)); 1006 1006
Note:
See TracChangeset
for help on using the changeset viewer.