VirtualBox

Changeset 5646 in vbox


Ignore:
Timestamp:
Nov 9, 2007 9:45:56 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25982
Message:

Introduced VBOX_WITH_PREALLOC_RAM_BY_DEFAULT which is disabled of course. A customer depends on this. Enabling this will not change PGM_DYNAMIC_RAM_ALLOC as we would execute other less-checked code pathes during execution.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r5618 r5646  
    172172VBOX_WITH_IDT_PATCHING = 1
    173173endif
     174# Activate this to force the VM to pre-allocate the guest RAM before startup
     175VBOX_WITH_PREALLOC_RAM_BY_DEFAULT =
    174176# The kernel driver/module and related runtime libraries.
    175177VBOX_WITH_VBOXDRV = 1
  • trunk/src/VBox/VMM/MM.cpp

    r4901 r5646  
    190190    int rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "RamPreAlloc", &fPreAlloc);
    191191    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
     192#ifdef VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
     193        fPreAlloc = true;
     194#else
    192195        fPreAlloc = false;
     196#endif
    193197    else
    194198        AssertMsgRCReturn(rc, ("Configuration error: Failed to query integer \"RamPreAlloc\", rc=%Vrc.\n", rc), rc);
  • trunk/src/VBox/VMM/Makefile.kmk

    r5597 r5646  
    3939ifdef VBOX_WITH_IDT_PATCHING
    4040VMMR3_DEFS     += VBOX_WITH_IDT_PATCHING
     41endif
     42ifdef VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
     43VMMR3_DEFS     += VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
    4144endif
    4245VMMR3_INCS     := \
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