VirtualBox

Changeset 64911 in vbox


Ignore:
Timestamp:
Dec 16, 2016 2:02:09 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112321
Message:

PGM: Fix sizing of last chunk for large MMIO (pre)registration.

File:
1 edited

Legend:

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

    r64399 r64911  
    25972597        const size_t     cbRange = RT_OFFSETOF(PGMREGMMIORANGE, RamRange.aPages[cPagesTrackedByChunk]);
    25982598        PPGMREGMMIORANGE pNew    = NULL;
    2599         if (   cPagesTrackedByChunk > cPagesLeft
     2599        if (   cPagesTrackedByChunk > cPagesLeft /**< @todo r=klaus the first part of the condition is guaranteed false due to RT_MIN above */
    26002600            || cbRange >= _1M)
    26012601        {
     
    27052705        *ppNext = pNew;
    27062706        ASMCompilerBarrier();
     2707        cPagesLeft -= cPagesTrackedByChunk;
    27072708        ppNext = &pNew->pNextR3;
    27082709    }
     2710    Assert(cPagesLeft == 0);
    27092711
    27102712    if (RT_SUCCESS(rc))
     
    34913493    }
    34923494
    3493     /* 
     3495    /*
    34943496     * We're good, set the flags and invalid the mapping TLB.
    34953497     */
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