Changeset 91850 in vbox
- Timestamp:
- Oct 19, 2021 11:27:43 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147652
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r91848 r91850 16 16 */ 17 17 18 #undef VBOX_WITH_NATIVE_NEM 18 19 19 20 /********************************************************************************************************************************* … … 1196 1197 return rc; 1197 1198 } 1198 #endif /* VBOX_WITH_PGM_NEM_MODE */ 1199 #else /* !VBOX_WITH_PGM_NEM_MODE */ 1200 RT_NOREF(pvMmio2); 1201 #endif /* !VBOX_WITH_PGM_NEM_MODE */ 1199 1202 1200 1203 /* … … 3911 3914 3912 3915 PGM_UNLOCK(pVM); 3913 return rc ;3916 return rcRet; 3914 3917 } 3915 3918 … … 4416 4419 } 4417 4420 4421 #ifdef VBOX_WITH_NATIVE_NEM 4418 4422 /* Set the NEM state of the pages if needed. */ 4419 4423 if (u2NemState != UINT8_MAX) 4420 4424 pgmPhysSetNemStateForPages(&pRamNew->aPages[idxFirstRamPage], cPages, u2NemState); 4425 #endif 4421 4426 4422 4427 /* Flush physical page map TLB. */ … … 4528 4533 GMMR3AllocatePagesCleanup(pReq); 4529 4534 4535 #ifdef VBOX_WITH_NATIVE_NEM 4530 4536 /* 4531 4537 * Notify NEM again. … … 4537 4543 pgmPhysSetNemStateForPages(&pRamNew->aPages[idxFirstRamPage], cPages, u2NemState); 4538 4544 if (RT_SUCCESS(rc)) 4545 #endif 4539 4546 return rc; 4540 4547 … … 4542 4549 * bail out 4543 4550 */ 4551 #ifdef VBOX_WITH_NATIVE_NEM 4544 4552 /* unlink */ 4545 4553 if (pRomPrev) … … 4556 4564 if (fFlags & PGMPHYS_ROM_FLAGS_SHADOWED) 4557 4565 { 4558 # ifdef VBOX_WITH_PGM_NEM_MODE4566 # ifdef VBOX_WITH_PGM_NEM_MODE 4559 4567 if (pVM->pgm.s.fNemMode) 4560 4568 pVM->pgm.s.cPrivatePages -= cPages; 4561 4569 else 4562 # endif4570 # endif 4563 4571 pVM->pgm.s.cZeroPages -= cPages; 4564 4572 pVM->pgm.s.cAllPages -= cPages; 4565 4573 } 4566 4574 #endif 4567 4575 } 4568 4576 else … … 4890 4898 if (rc2 != VINF_SUCCESS && (rc == VINF_SUCCESS || RT_FAILURE(rc2))) 4891 4899 rc = rc2; 4900 #ifdef VBOX_WITH_NATIVE_NEM 4892 4901 uint8_t u2State = PGM_PAGE_GET_NEM_STATE(pRamPage); 4902 #endif 4893 4903 4894 4904 PPGMPAGE pOld = PGMROMPROT_IS_ROM(pRomPage->enmProt) ? &pRomPage->Virgin : &pRomPage->Shadow; … … 5727 5737 PGM_PAGE_SET_NEM_STATE(pPage, u2State); 5728 5738 } 5739 #else 5740 RT_NOREF(enmNewType); 5729 5741 #endif 5730 5742
Note:
See TracChangeset
for help on using the changeset viewer.