VirtualBox

Changeset 92435 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Nov 15, 2021 5:14:06 PM (3 years ago)
Author:
vboxsync
Message:

VMM/PGM: Nits. bugref:10122

File:
1 edited

Legend:

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

    r92424 r92435  
    17971797         * Note! The sizes used here will influence the saved state.
    17981798         */
    1799         uint32_t cbChunk = 16U*_1M;
     1799        uint32_t cbChunk = _16M;
    18001800        uint32_t cPagesPerChunk = 1047552; /* max ~1048059 */
    18011801        Assert(cPagesPerChunk / 512 * 512 == cPagesPerChunk); /* NEM large page requirement */
    1802         AssertCompile(sizeof(PGMRAMRANGE) + sizeof(PGMPAGE) * 1047552 < 16U*_1M - PAGE_SIZE * 2);
     1802        AssertCompile(sizeof(PGMRAMRANGE) + sizeof(PGMPAGE) * 1047552 < _16M - PAGE_SIZE * 2);
    18031803        AssertRelease(RT_UOFFSETOF_DYN(PGMRAMRANGE, aPages[cPagesPerChunk]) + PAGE_SIZE * 2 <= cbChunk);
    18041804
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