Changeset 78840 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- May 29, 2019 9:04:26 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 130940
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r78483 r78840 2815 2815 2816 2816 /** 2817 * Checks whether the VMX nested-guest is in a state to receive physical (APIC)2818 * interrupts.2819 *2820 * @returns VBox status code.2821 * @retval true if it's ready, false otherwise.2822 *2823 * @param pVCpu The cross context virtual CPU structure of the calling EMT.2824 * @param pCtx The guest-CPU context.2825 */2826 VMM_INT_DECL(bool) CPUMIsGuestVmxPhysIntrEnabled(PVMCPU pVCpu, PCCPUMCTX pCtx)2827 {2828 #ifdef IN_RC2829 RT_NOREF2(pVCpu, pCtx);2830 AssertReleaseFailedReturn(false);2831 #else2832 RT_NOREF(pVCpu);2833 Assert(CPUMIsGuestInVmxNonRootMode(pCtx));2834 2835 return RT_BOOL(pCtx->eflags.u & X86_EFL_IF);2836 #endif2837 }2838 2839 2840 /**2841 * Checks whether the VMX nested-guest is in a state to receive virtual interrupts2842 * (those injected with the "virtual-interrupt delivery" feature).2843 *2844 * @returns VBox status code.2845 * @retval true if it's ready, false otherwise.2846 *2847 * @param pVCpu The cross context virtual CPU structure of the calling EMT.2848 * @param pCtx The guest-CPU context.2849 */2850 VMM_INT_DECL(bool) CPUMIsGuestVmxVirtIntrEnabled(PVMCPU pVCpu, PCCPUMCTX pCtx)2851 {2852 #ifdef IN_RC2853 RT_NOREF2(pVCpu, pCtx);2854 AssertReleaseFailedReturn(false);2855 #else2856 RT_NOREF2(pVCpu, pCtx);2857 Assert(CPUMIsGuestInVmxNonRootMode(pCtx));2858 2859 if ( (pCtx->eflags.u & X86_EFL_IF)2860 && !CPUMIsGuestVmxProcCtlsSet(pVCpu, pCtx, VMX_PROC_CTLS_INT_WINDOW_EXIT))2861 return true;2862 return false;2863 #endif2864 }2865 2866 2867 /**2868 2817 * Checks whether the SVM nested-guest has physical interrupts enabled. 2869 2818 *
Note:
See TracChangeset
for help on using the changeset viewer.