VirtualBox

Changeset 45739 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Apr 25, 2013 7:44:05 PM (12 years ago)
Author:
vboxsync
Message:

VMM: First part of HMIsEnabled() and PGMMap*.

Location:
trunk/src/VBox/VMM/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/PGMInline.h

    r44528 r45739  
    14851485#ifdef PGM_WITHOUT_MAPPINGS
    14861486    /* There are no mappings in VT-x and AMD-V mode. */
    1487     Assert(pVM->pgm.s.fMappingsDisabled);
     1487    Assert(HMIsEnabled(pVM));
    14881488    return false;
    14891489#else
    1490     return !pVM->pgm.s.fMappingsDisabled;
     1490    Assert(pVM->cCpus == 1);
     1491    return !HMIsEnabled(pVM);
    14911492#endif
    14921493}
     
    15031504#ifdef PGM_WITHOUT_MAPPINGS
    15041505    /* There are no mappings in VT-x and AMD-V mode. */
    1505     Assert(pVM->pgm.s.fMappingsDisabled);
     1506    Assert(HMIsEnabled(pVM));
    15061507    return false;
    15071508#else
    1508     return !pVM->pgm.s.fMappingsDisabled
    1509         && !pVM->pgm.s.fMappingsFixed;
     1509    return !pVM->pgm.s.fMappingsFixed
     1510        && pgmMapAreMappingsEnabled(pVM);
    15101511#endif
    15111512}
  • trunk/src/VBox/VMM/include/PGMInternal.h

    r45695 r45739  
    30283028    bool                            fPciPassthrough;
    30293029    /** Alignment padding that makes the next member start on a 8 byte boundary. */
    3030     bool                            afAlignment1[2];
     3030    bool                            afAlignment1[3];
    30313031
    30323032    /** Indicates that PGMR3FinalizeMappings has been called and that further
     
    30383038     *  location because of room or address incompatibilities. */
    30393039    bool                            fMappingsFixedRestored;
    3040     /** If set, then no mappings are put into the shadow page table.
    3041      * Use pgmMapAreMappingsEnabled() instead of direct access. */
    3042     bool                            fMappingsDisabled;
    30433040    /** Size of fixed mapping.
    30443041     * This is valid if either fMappingsFixed or fMappingsFixedRestored is set. */
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