VirtualBox

Changeset 17787 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Mar 13, 2009 1:39:33 AM (16 years ago)
Author:
vboxsync
Message:

PGMMPhysWrite: Use the correct page address when growing the ram range.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r17660 r17787  
    23962396                if (RT_UNLIKELY(!PGM_PAGE_GET_HCPHYS(pPage)))
    23972397                {
    2398                     int rc;
     2398                    int         rc;
     2399                    RTGCPHYS    GCPhysPage = GCPhys + off;
    23992400#ifdef IN_RING3
    24002401                    if (fGrabbedLock)
    24012402                    {
    24022403                        pgmUnlock(pVM);
    2403                         rc = pgmr3PhysGrowRange(pVM, GCPhys);
     2404                        rc = pgmr3PhysGrowRange(pVM, GCPhysPage);
    24042405                        if (rc == VINF_SUCCESS)
    2405                             PGMPhysWrite(pVM, GCPhys, pvBuf, cbWrite); /* try again; can't assume pRam is still valid (paranoia) */
     2406                            PGMPhysWrite(pVM, GCPhysPage, pvBuf, cbWrite); /* try again; can't assume pRam is still valid (paranoia) */
    24062407                        return;
    24072408                    }
    2408                     rc = pgmr3PhysGrowRange(pVM, GCPhys);
     2409                    rc = pgmr3PhysGrowRange(pVM, GCPhysPage);
    24092410#else
    2410                     rc = CTXALLMID(VMM, CallHost)(pVM, VMMCALLHOST_PGM_RAM_GROW_RANGE, GCPhys);
     2411                    rc = CTXALLMID(VMM, CallHost)(pVM, VMMCALLHOST_PGM_RAM_GROW_RANGE, GCPhysPage);
    24112412#endif
    24122413                    if (rc != VINF_SUCCESS)
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