VirtualBox

Changeset 73436 in vbox for trunk/include


Ignore:
Timestamp:
Aug 1, 2018 4:25:13 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124060
Message:

VMM: Nested VMX: bugref:9180 Added CPUMIsGuestVmxEnabled() helper, start adding some basic VMX guest-CPU data in preparation
for implementing VMXON in IEM.

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r73389 r73436  
    15521552
    15531553/**
    1554  * Tests is if the guest has AMD SVM enabled or not.
     1554 * Tests if the guest has AMD SVM enabled or not.
    15551555 *
    15561556 * @returns true if SMV is enabled, otherwise false.
     
    15621562}
    15631563
     1564/**
     1565 * Tests if the guest has Intel VT-x enabled or not.
     1566 *
     1567 * @returns true if VMX is enabled, otherwise false.
     1568 * @param   pCtx    Current CPU context.
     1569 */
     1570DECLINLINE(bool) CPUMIsGuestVmxEnabled(PCCPUMCTX pCtx)
     1571{
     1572    return RT_BOOL(pCtx->cr4 & X86_CR4_VMXE);
     1573}
    15641574#ifndef IN_RC
    15651575
  • trunk/include/VBox/vmm/cpumctx.h

    r72880 r73436  
    536536                RTHCPHYS            HCPhysVmcb;
    537537            } svm;
    538 #if 0
     538
    539539            struct
    540540            {
     541                /** 0x2e0 - Whether the guest is in VMX root mode. */
     542                uint32_t            fInVmxRootMode : 1;
     543                uint32_t            afPadding  : 31;
     544                /** 0x2e4 - Guest physical address of the VMXON region. */
     545                RTGCPHYS            GCPhysVmxon;
     546                /** 0x2ec - Padding. */
     547                uint8_t             abPadding[0x3f0 - 0x2ec];
    541548            } vmx;
    542 #endif
    543549        } CPUM_UNION_NM(s);
    544550
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