VirtualBox

Changeset 107177 in vbox


Ignore:
Timestamp:
Nov 29, 2024 7:35:43 AM (7 weeks ago)
Author:
vboxsync
Message:

VMM/PGM: Fixed regression from r166169. jiraref:VBP-1466

File:
1 edited

Legend:

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

    r107171 r107177  
    19061906    if (PGM_IS_IN_NEM_MODE(pVM))
    19071907    {
    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     else
    1917 #endif
    1918     {
    1919 #ifndef VBOX_WITH_ONLY_PGM_NEM_MODE
    19201908        int rc = SUPR3PageAlloc(RT_ALIGN_Z(pNew->cb, HOST_PAGE_SIZE) >> HOST_PAGE_SHIFT,
    19211909                                pVM->pgm.s.fUseLargePages ? SUP_PAGE_ALLOC_F_LARGE_PAGES : 0, (void **)&pNew->pbR3);
     
    19311919        pVM->pgm.s.cPrivatePages += cPages;
    19321920        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;
    19331933#endif
    19341934    }
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