Changeset 92435 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Nov 15, 2021 5:14:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r92424 r92435 1797 1797 * Note! The sizes used here will influence the saved state. 1798 1798 */ 1799 uint32_t cbChunk = 16U*_1M;1799 uint32_t cbChunk = _16M; 1800 1800 uint32_t cPagesPerChunk = 1047552; /* max ~1048059 */ 1801 1801 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); 1803 1803 AssertRelease(RT_UOFFSETOF_DYN(PGMRAMRANGE, aPages[cPagesPerChunk]) + PAGE_SIZE * 2 <= cbChunk); 1804 1804
Note:
See TracChangeset
for help on using the changeset viewer.