VirtualBox

Ignore:
Timestamp:
Oct 28, 2010 10:10:22 AM (14 years ago)
Author:
vboxsync
Message:

Always enable large page support on 64-bit hosts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r33540 r33543  
    6666#include <iprt/cpp/xml.h>               /* xml::XmlFileWriter::s_psz*Suff. */
    6767#include <iprt/string.h>
    68 #include <iprt/system.h>
    6968
    7069#include <VBox/com/array.h>
     
    155154    mHWVirtExNestedPagingEnabled = true;
    156155#if HC_ARCH_BITS == 64
    157     /* Default value decision pending. */
    158     uint64_t cbRam = 0;
    159 
    160     if (    RTSystemQueryTotalRam(&cbRam) == VINF_SUCCESS
    161         &&  cbRam >= (UINT64_C(6) * _1G))
    162     {
    163         mHWVirtExLargePagesEnabled = true;
    164     }
    165     else
    166         mHWVirtExLargePagesEnabled = false;
     156    mHWVirtExLargePagesEnabled = true;
    167157#else
    168158    /* Not supported on 32 bits hosts. */
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