Changeset 93554 in vbox for trunk/src/VBox/VMM/VMMR3/PGMSharedPage.cpp
- Timestamp:
- Feb 2, 2022 10:57:02 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMSharedPage.cpp
r93115 r93554 350 350 PPGMPAGE pPage = &pRam->aPages[0]; 351 351 RTGCPHYS GCPhys = pRam->GCPhys; 352 uint32_t cLeft = pRam->cb >> PAGE_SHIFT;352 uint32_t cLeft = pRam->cb >> GUEST_PAGE_SHIFT; 353 353 while (cLeft-- > 0) 354 354 { … … 377 377 int rc = pgmPhysGCPhys2CCPtrInternalReadOnly(pVM, pPage, GCPhys, &pvPage, &PgMpLck); 378 378 if ( RT_SUCCESS(rc) 379 && ASMMemIsZero Page(pvPage))379 && ASMMemIsZero(pvPage, GUEST_PAGE_SIZE)) 380 380 cAllocZero++; 381 381 else if (GMMR3IsDuplicatePage(pVM, PGM_PAGE_GET_PAGEID(pPage))) … … 396 396 /* next */ 397 397 pPage++; 398 GCPhys += PAGE_SIZE;398 GCPhys += GUEST_PAGE_SIZE; 399 399 cPages++; 400 400 /* Give some feedback for every processed megabyte. */
Note:
See TracChangeset
for help on using the changeset viewer.