VirtualBox

Changeset 27167 in vbox for trunk


Ignore:
Timestamp:
Mar 8, 2010 2:19:31 PM (15 years ago)
Author:
vboxsync
Message:

Large page support enabled as configured.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r27099 r27167  
    324324
    325325    pVM->hwaccm.s.fNestedPaging  = false;
     326    pVM->hwaccm.s.fLargePages    = false;
    326327
    327328    /* Disabled by default. */
     
    335336    /* Nested paging: disabled by default. */
    336337    rc = CFGMR3QueryBoolDef(pHWVirtExt, "EnableNestedPaging", &pVM->hwaccm.s.fAllowNestedPaging, false);
     338    AssertRC(rc);
     339
     340    /* Large pages: disabled by default. */
     341    rc = CFGMR3QueryBoolDef(pHWVirtExt, "EnableLargePages", &pVM->hwaccm.s.fLargePages, false);
    337342    AssertRC(rc);
    338343
     
    11581163                        LogRel(("HWACCM: Unrestricted guest execution enabled!\n"));
    11591164
    1160 #ifdef DEBUG_sandervl
    1161                     /* Use large (2 MB) pages for our EPT PDEs where possible. */
    1162                     PGMSetLargePageUsage(pVM, true);
     1165#if HC_ARCH_BITS == 64
     1166                    if (pVM->hwaccm.s.fLargePages)
     1167                    {
     1168                        /* Use large (2 MB) pages for our EPT PDEs where possible. */
     1169                        PGMSetLargePageUsage(pVM, true);
     1170                        LogRel(("HWACCM: Large page support enabled!\n"));
     1171                    }
    11631172#endif
    11641173                }
     
    12811290                if (pVM->hwaccm.s.fNestedPaging)
    12821291                {
    1283 #ifdef DEBUG_sandervl
    1284                     /* Use large (2 MB) pages for our EPT PDEs where possible. */
    1285                     PGMSetLargePageUsage(pVM, true);
     1292#if HC_ARCH_BITS == 64
     1293                    if (pVM->hwaccm.s.fLargePages)
     1294                    {
     1295                        /* Use large (2 MB) pages for our EPT PDEs where possible. */
     1296                        PGMSetLargePageUsage(pVM, true);
     1297                        LogRel(("HWACCM: Large page support enabled!\n"));
     1298                    }
    12861299#endif
    12871300                    LogRel(("HWACCM:    Enabled nested paging\n"));
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r26491 r27167  
    260260    bool                        fAllowNestedPaging;
    261261
     262    /** Set if large pages are enabled (requires nested paging). */
     263    bool                        fLargePages;
     264
    262265    /** Set if we can support 64-bit guests or not. */
    263266    bool                        fAllow64BitGuests;
     
    274277    /** Set when TPR patching is active. */
    275278    bool                        fTPRPatchingActive;
    276     bool                        u8Alignment[7];
     279    bool                        u8Alignment[6];
    277280
    278281    /** And mask for copying register contents. */
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