VirtualBox

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


Ignore:
Timestamp:
Oct 13, 2021 11:05:26 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147446
Message:

VMM/CPUM: Nested VMX: bugref:10092 Added some VMX CPUMFEATURES' bit. Cleaned up cpumR3AreVmxCpuFeaturesCompatible to avoid some duplication.

File:
1 edited

Legend:

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

    r91580 r91710  
    30333033}
    30343034
     3035
     3036/**
     3037 * Checks whether the guest is in VMX non-root mode and using EPT paging.
     3038 *
     3039 * @returns @c true if in VMX non-root operation with EPT, @c false otherwise.
     3040 * @param   pVCpu   The cross context virtual CPU structure.
     3041 */
     3042VMM_INT_DECL(bool) CPUMIsGuestVmxEptPagingEnabled(PCVMCPUCC pVCpu)
     3043{
     3044    return    CPUMIsGuestInVmxNonRootMode(&pVCpu->cpum.s.Guest)
     3045           && CPUMIsGuestVmxProcCtls2Set(&pVCpu->cpum.s.Guest, VMX_PROC_CTLS2_EPT);
     3046}
     3047
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