VirtualBox

Changeset 33 in vbox


Ignore:
Timestamp:
Jan 15, 2007 5:18:01 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17462
Message:

Arght

File:
1 edited

Legend:

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

    r32 r33  
    221221            rc = PGM3PhysGrowRange(pVM, (RTGCPHYS)0);
    222222            if (VBOX_SUCCESS(rc))
     223            {
     224                /* Should we preallocate the entire guest RAM? */
     225                if (fPreAlloc)
     226                {
     227                    RTGCPHYS GCPhys = PGM_DYNAMIC_CHUNK_SIZE;
     228
     229                    for (;GCPhys < cbRam ; GCPhys+=PGM_DYNAMIC_CHUNK_SIZE)
     230                    {
     231                        rc = PGM3PhysGrowRange(pVM, GCPhys);
     232                        if (VBOX_SUCCESS(rc))
     233                            return rc;
     234                    }
     235                }
    223236                return rc;
    224 
    225             /* Should we preallocate the entire guest RAM? */
    226             if (fPreAlloc)
    227             {
    228                 RTGCPHYS GCPhys = PGM_DYNAMIC_CHUNK_SIZE;
    229 
    230                 for (;GCPhys < cbRam ; GCPhys+=PGM_DYNAMIC_CHUNK_SIZE)
    231                 {
    232                     rc = PGM3PhysGrowRange(pVM, GCPhys);
    233                     if (VBOX_SUCCESS(rc))
    234                         return rc;
    235                 }
    236237            }
    237238        }
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