VirtualBox

Changeset 18957 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 16, 2009 5:03:19 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46039
Message:

Fixed locked array size (was too small) and caused corruption.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMInternal.h

    r18952 r18957  
    23002300     * The cache size is covering half of the mapping area. */
    23012301    RTHCPHYS                        aHCPhysDynPageMapCache[MM_HYPER_DYNAMIC_SIZE >> (PAGE_SHIFT + 1)];
    2302     uint32_t                        aLockedDynPageMapCache[MM_HYPER_DYNAMIC_SIZE >> (PAGE_SHIFT + 1)];
     2302    /**
     2303     * Keep a lock counter for the full (!) mapping area. */
     2304    uint32_t                        aLockedDynPageMapCache[MM_HYPER_DYNAMIC_SIZE >> (PAGE_SHIFT)];
    23032305
    23042306    /** The address of the ring-0 mapping cache if we're making use of it.  */
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r18949 r18957  
    23062306    unsigned iPage;
    23072307
    2308     AssertCompile(RT_ELEMENTS(pVM->pgm.s.aHCPhysDynPageMapCache) == RT_ELEMENTS(pVM->pgm.s.aLockedDynPageMapCache));
     2308    AssertCompile(RT_ELEMENTS(pVM->pgm.s.aLockedDynPageMapCache) == 2* RT_ELEMENTS(pVM->pgm.s.aHCPhysDynPageMapCache));
    23092309
    23102310    Assert(GCPage >= pVM->pgm.s.pbDynPageMapBaseGC && GCPage < (pVM->pgm.s.pbDynPageMapBaseGC + MM_HYPER_DYNAMIC_SIZE));
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