Changeset 107177 in vbox
- Timestamp:
- Nov 29, 2024 7:35:43 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r107171 r107177 1906 1906 if (PGM_IS_IN_NEM_MODE(pVM)) 1907 1907 { 1908 RTGCPHYS iPage = cPages;1909 while (iPage-- > 0)1910 PGM_PAGE_INIT_ZERO(&pNew->aPages[iPage], pVM, PGMPAGETYPE_RAM);1911 1912 /* Update the page count stats. */1913 pVM->pgm.s.cZeroPages += cPages;1914 pVM->pgm.s.cAllPages += cPages;1915 }1916 else1917 #endif1918 {1919 #ifndef VBOX_WITH_ONLY_PGM_NEM_MODE1920 1908 int rc = SUPR3PageAlloc(RT_ALIGN_Z(pNew->cb, HOST_PAGE_SIZE) >> HOST_PAGE_SHIFT, 1921 1909 pVM->pgm.s.fUseLargePages ? SUP_PAGE_ALLOC_F_LARGE_PAGES : 0, (void **)&pNew->pbR3); … … 1931 1919 pVM->pgm.s.cPrivatePages += cPages; 1932 1920 pVM->pgm.s.cAllPages += cPages; 1921 } 1922 else 1923 #endif 1924 { 1925 #ifndef VBOX_WITH_ONLY_PGM_NEM_MODE 1926 RTGCPHYS iPage = cPages; 1927 while (iPage-- > 0) 1928 PGM_PAGE_INIT_ZERO(&pNew->aPages[iPage], pVM, PGMPAGETYPE_RAM); 1929 1930 /* Update the page count stats. */ 1931 pVM->pgm.s.cZeroPages += cPages; 1932 pVM->pgm.s.cAllPages += cPages; 1933 1933 #endif 1934 1934 }
Note:
See TracChangeset
for help on using the changeset viewer.