VirtualBox

Changeset 78840 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
May 29, 2019 9:04:26 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130940
Message:

VMM/CPUM: Nested VMX: bugref:9180 Make CPUMIsGuestVmx[Phys|Virt]IntrEnabled() inline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r78483 r78840  
    28152815
    28162816/**
    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_RC
    2829     RT_NOREF2(pVCpu, pCtx);
    2830     AssertReleaseFailedReturn(false);
    2831 #else
    2832     RT_NOREF(pVCpu);
    2833     Assert(CPUMIsGuestInVmxNonRootMode(pCtx));
    2834 
    2835     return RT_BOOL(pCtx->eflags.u & X86_EFL_IF);
    2836 #endif
    2837 }
    2838 
    2839 
    2840 /**
    2841  * Checks whether the VMX nested-guest is in a state to receive virtual interrupts
    2842  * (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_RC
    2853     RT_NOREF2(pVCpu, pCtx);
    2854     AssertReleaseFailedReturn(false);
    2855 #else
    2856     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 #endif
    2864 }
    2865 
    2866 
    2867 /**
    28682817 * Checks whether the SVM nested-guest has physical interrupts enabled.
    28692818 *
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette