VirtualBox

Changeset 91951 in vbox


Ignore:
Timestamp:
Oct 21, 2021 1:55:49 PM (3 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10092 Added CPUMIsGuestVmxEptPagingEnabledEx for inline'd access from IEM.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r91710 r91951  
    22662266}
    22672267
     2268
     2269/**
     2270 * Checks whether the guest is in VMX non-root mode and using EPT paging.
     2271 *
     2272 * @returns @c true if in VMX non-root operation with EPT, @c false otherwise.
     2273 * @param   pCtx   Current CPU context.
     2274 */
     2275DECLINLINE(bool) CPUMIsGuestVmxEptPagingEnabledEx(PCCPUMCTX pCtx)
     2276{
     2277    return    CPUMIsGuestInVmxNonRootMode(pCtx)
     2278           && CPUMIsGuestVmxProcCtls2Set(pCtx, VMX_PROC_CTLS2_EPT);
     2279}
     2280
     2281
    22682282/**
    22692283 * Implements VMSucceed for VMX instruction success.
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r91710 r91951  
    30423042VMM_INT_DECL(bool) CPUMIsGuestVmxEptPagingEnabled(PCVMCPUCC pVCpu)
    30433043{
    3044     return    CPUMIsGuestInVmxNonRootMode(&pVCpu->cpum.s.Guest)
    3045            && CPUMIsGuestVmxProcCtls2Set(&pVCpu->cpum.s.Guest, VMX_PROC_CTLS2_EPT);
    3046 }
    3047 
     3044    return CPUMIsGuestVmxEptPagingEnabledEx(&pVCpu->cpum.s.Guest);
     3045}
     3046
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