- Timestamp:
- Apr 23, 2019 4:17:43 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/HMAll.cpp
r78245 r78253 742 742 743 743 744 /**745 * Notifies HM that GIM provider wants to trap \#UD.746 *747 * @param pVCpu The cross context virtual CPU structure.748 */749 VMM_INT_DECL(void) HMTrapXcptUDForGIMEnable(PVMCPU pVCpu)750 {751 pVCpu->hm.s.fGIMTrapXcptUD = true;752 if (pVCpu->CTX_SUFF(pVM)->hm.s.vmx.fSupported)753 ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_VMX_GUEST_XCPT_INTERCEPTS);754 else755 ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_SVM_GUEST_XCPT_INTERCEPTS);756 }757 758 759 /**760 * Notifies HM that GIM provider no longer wants to trap \#UD.761 *762 * @param pVCpu The cross context virtual CPU structure.763 */764 VMM_INT_DECL(void) HMTrapXcptUDForGIMDisable(PVMCPU pVCpu)765 {766 pVCpu->hm.s.fGIMTrapXcptUD = false;767 if (pVCpu->CTX_SUFF(pVM)->hm.s.vmx.fSupported)768 ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_VMX_GUEST_XCPT_INTERCEPTS);769 else770 ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_SVM_GUEST_XCPT_INTERCEPTS);771 }772 773 774 744 #ifndef IN_RC 775 745 /**
Note:
See TracChangeset
for help on using the changeset viewer.