VirtualBox

Changeset 850 in vbox for trunk


Ignore:
Timestamp:
Feb 12, 2007 5:30:30 PM (18 years ago)
Author:
vboxsync
Message:

Missing case where we should check that the guest RAM was indeed allocated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r838 r850  
    19541954                        RTHCPHYS    HCPhys = pRam->aHCPhys[iHCPage];
    19551955                        SHWPTE      PteDst;
     1956
     1957                        /* Make sure the RAM has already been allocated. */
     1958                        if (pRam->fFlags & MM_RAM_FLAGS_DYNAMIC_ALLOC)
     1959                        {
     1960                            if (RT_UNLIKELY(!(pRam->aHCPhys[iHCPage] & X86_PTE_PAE_PG_MASK)))
     1961                            {
     1962#ifdef IN_RING3
     1963                                int rc = pgmr3PhysGrowRange(pVM, GCPhys);
     1964#else
     1965                                int rc = CTXALLMID(VMM, CallHost)(pVM, VMMCALLHOST_PGM_RAM_GROW_RANGE, GCPhys);
     1966#endif
     1967                                if (rc != VINF_SUCCESS)
     1968                                    return rc;
     1969                            }
     1970                        }
     1971
    19561972                        if (HCPhys & (MM_RAM_FLAGS_PHYSICAL_ALL | MM_RAM_FLAGS_VIRTUAL_ALL | MM_RAM_FLAGS_PHYSICAL_WRITE | MM_RAM_FLAGS_VIRTUAL_WRITE))
    19571973                        {
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