VirtualBox

Changeset 853 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 13, 2007 9:58:47 AM (18 years ago)
Author:
vboxsync
Message:

Out of memory condition during state restore is fatal.

File:
1 edited

Legend:

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

    r323 r853  
    373373    if (VBOX_SUCCESS(rc))
    374374    {
     375        VMSTATE enmVMState = VMR3GetState(pVM);
     376
    375377        rc = MMR3PhysRegisterEx(pVM, pvRam, GCPhys, PGM_DYNAMIC_CHUNK_SIZE, 0, MM_PHYS_TYPE_DYNALLOC_CHUNK, "Main Memory");
    376         if (VBOX_SUCCESS(rc))
     378        if (    VBOX_SUCCESS(rc)
     379            ||  enmVMState != VMSTATE_RUNNING)
     380        {
     381            if (VBOX_FAILURE(rc))
     382            {
     383                AssertMsgFailed(("Out of memory while trying to allocate a guest RAM chunk at %VGp!\n", GCPhys));
     384                LogRel(("PGM: Out of memory while trying to allocate a guest RAM chunk at %VGp (VMstate=%s)!\n", GCPhys, VMR3GetStateName(enmVMState)));
     385            }
    377386            return rc;
     387        }
    378388
    379389        SUPPageFree(pvRam);
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