Lines Matching defs:pPage

258                     PPGMPAGE pPage;
259 int rc = pgmPhysGetPageWithHintEx(pVM, GCPhys, &pPage, &pRamHint);
262 pRom->aPages[iPage].LiveSave.fWrittenTo = !PGM_PAGE_IS_ZERO(pPage) && !PGM_PAGE_IS_BALLOONED(pPage);
453 PPGMPAGE pPage;
455 pPage = pgmPhysGetPage(pVM, GCPhys);
457 pPage = &pRom->aPages[iPage].Virgin;
462 if ( !PGM_PAGE_IS_ZERO(pPage)
463 && !PGM_PAGE_IS_BALLOONED(pPage))
466 rc = pgmPhysPageMapReadOnly(pVM, pPage, GCPhys, &pvPage);
549 PPGMPAGE pPage = PGMROMPROT_IS_ROM(enmProt) ? &pRomPage->Shadow : pgmPhysGetPage(pVM, GCPhys);
550 bool fZero = PGM_PAGE_IS_ZERO(pPage) || PGM_PAGE_IS_BALLOONED(pPage); Assert(!PGM_PAGE_IS_BALLOONED(pPage)); /* Shouldn't be ballooned. */
555 rc = pgmPhysPageMapReadOnly(pVM, pPage, GCPhys, &pvPage);
1112 PCPGMPAGE pPage = &pCur->aPages[iPage];
1118 switch (PGM_PAGE_GET_TYPE(pPage))
1121 if ( PGM_PAGE_IS_ZERO(pPage)
1122 || PGM_PAGE_IS_BALLOONED(pPage))
1130 else if (PGM_PAGE_IS_SHARED(pPage))
1165 AssertMsgFailed(("%R[pgmpage]", pPage));
1802 PPGMPAGE pPage = &pCur->aPages[iPage];
1803 PGM_PAGE_CLEAR_WRITTEN_TO(pVM, pPage);
1804 if (PGM_PAGE_GET_STATE(pPage) == PGM_PAGE_STATE_WRITE_MONITORED)
1806 PGM_PAGE_SET_STATE(pVM, pPage, PGM_PAGE_STATE_ALLOCATED);
2199 * @param pPage The page to compare.
2202 DECLINLINE(bool) pgmR3CompareNewAndOldPageTypes(PPGMPAGE pPage, uint8_t uOldType)
2205 switch (PGM_PAGE_GET_TYPE(pPage))
2232 * @param pPage The guest page tracking structure.
2236 static int pgmR3LoadPageZeroOld(PVM pVM, uint8_t uOldType, PPGMPAGE pPage, RTGCPHYS GCPhys, PPGMRAMRANGE pRam)
2239 && !pgmR3CompareNewAndOldPageTypes(pPage, uOldType))
2243 if ( !PGM_PAGE_IS_ZERO(pPage)
2244 && !PGM_PAGE_IS_BALLOONED(pPage))
2262 * @param pPage The guest page tracking structure.
2266 static int pgmR3LoadPageBitsOld(PVM pVM, PSSMHANDLE pSSM, uint8_t uOldType, PPGMPAGE pPage, RTGCPHYS GCPhys, PPGMRAMRANGE pRam)
2272 || pgmR3CompareNewAndOldPageTypes(pPage, uOldType)
2277 && PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM)
2279 ("pPage=%R[pgmpage] GCPhys=%#x %s\n", pPage, GCPhys, pRam->pszDesc),
2287 int rc = pgmPhysGCPhys2CCPtrInternal(pVM, pPage, GCPhys, &pvPage, &PgMpLck);
2305 * @param pPage The page.
2309 static int pgmR3LoadPageOld(PVM pVM, PSSMHANDLE pSSM, uint8_t uOldType, PPGMPAGE pPage, RTGCPHYS GCPhys, PPGMRAMRANGE pRam)
2313 AssertLogRelMsgRCReturn(rc, ("pPage=%R[pgmpage] GCPhys=%#x %s rc=%Rrc\n", pPage, GCPhys, pRam->pszDesc, rc), rc);
2315 rc = pgmR3LoadPageZeroOld(pVM, uOldType, pPage, GCPhys, pRam);
2317 rc = pgmR3LoadPageBitsOld(pVM, pSSM, uOldType, pPage, GCPhys, pRam);
2320 AssertLogRelMsgRCReturn(rc, ("pPage=%R[pgmpage] uState=%d uOldType=%d GCPhys=%RGp %s rc=%Rrc\n",
2321 pPage, uState, uOldType, GCPhys, pRam->pszDesc, rc),
2333 * @param pPage The page.
2337 static int pgmR3LoadShadowedRomPageOld(PVM pVM, PSSMHANDLE pSSM, PPGMPAGE pPage, RTGCPHYS GCPhys, PPGMRAMRANGE pRam)
2348 AssertLogRelMsgRCReturn(rc, ("pPage=%R[pgmpage] GCPhys=%#x %s\n", pPage, GCPhys, pRam->pszDesc), rc);
2352 ("enmProt=%d pPage=%R[pgmpage] GCPhys=%#x %s\n", enmProt, pPage, GCPhys, pRam->pszDesc),
2371 rc = pgmR3LoadPageOld(pVM, pSSM, u8ActiveType, pPage, GCPhys, pRam);
2374 *pPageActive = *pPage;
2492 PPGMPAGE pPage = &pRam->aPages[iPage];
2495 AssertLogRelMsgRCReturn(rc, ("pPage=%R[pgmpage] iPage=%#x GCPhysPage=%#x %s\n", pPage, iPage, GCPhysPage, pRam->pszDesc), rc);
2497 rc = pgmR3LoadShadowedRomPageOld(pVM, pSSM, pPage, GCPhysPage, pRam);
2499 rc = pgmR3LoadPageOld(pVM, pSSM, uOldType, pPage, GCPhysPage, pRam);
2544 PPGMPAGE pPage = &pRam->aPages[iPage];
2547 if ( PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_MMIO
2548 || PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_SPECIAL_ALIAS_MMIO)
2551 rc = pgmR3LoadPageBitsOld(pVM, pSSM, PGMPAGETYPE_INVALID, pPage, GCPhysPage, pRam);
2554 rc = pgmR3LoadPageZeroOld(pVM, PGMPAGETYPE_INVALID, pPage, GCPhysPage, pRam);
2607 PPGMPAGE pPage = &pRam->aPages[iPage];
2609 AssertLogRelMsgReturn(PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM,
2610 ("GCPhys=%RGp pPage=%R[pgmpage]\n", GCPhys, GCPhys),
2612 rc = pgmR3LoadPageBitsOld(pVM, pSSM, PGMPAGETYPE_ROM, pPage, GCPhysPage, pRam);
2706 PPGMPAGE pPage;
2707 rc = pgmPhysGetPageWithHintEx(pVM, GCPhys, &pPage, &pRamHint);
2717 if (PGM_PAGE_IS_ZERO(pPage))
2722 if (PGM_PAGE_IS_BALLOONED(pPage))
2724 Assert(PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_RAM);
2727 PGM_PAGE_SET_STATE(pVM, pPage, PGM_PAGE_STATE_ZERO);
2731 AssertLogRelMsgReturn(PGM_PAGE_GET_STATE(pPage) == PGM_PAGE_STATE_ALLOCATED, ("GCPhys=%RGp %R[pgmpage]\n", GCPhys, pPage), VERR_PGM_UNEXPECTED_PAGE_STATE);
2736 if ( PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM
2737 || PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM_SHADOW
2742 rc = pgmPhysGCPhys2CCPtrInternal(pVM, pPage, GCPhys, &pvDstPage, &PgMpLck);
2743 AssertLogRelMsgRCReturn(rc, ("GCPhys=%RGp %R[pgmpage] rc=%Rrc\n", GCPhys, pPage, rc), rc);
2750 else if ( PGM_PAGE_GET_PDE_TYPE(pPage) != PGM_PAGE_PDE_TYPE_PDE
2751 && PGM_PAGE_GET_PDE_TYPE(pPage) != PGM_PAGE_PDE_TYPE_PDE_DISABLED)
2753 rc = pgmPhysFreePage(pVM, pReq, &cPendingPages, pPage, GCPhys);
2762 Assert(PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_RAM);
2763 if (PGM_PAGE_IS_BALLOONED(pPage))
2768 if (PGM_PAGE_IS_ALLOCATED(pPage))
2772 AssertLogRelMsgReturn( PGM_PAGE_GET_PDE_TYPE(pPage) != PGM_PAGE_PDE_TYPE_PDE
2773 && PGM_PAGE_GET_PDE_TYPE(pPage) != PGM_PAGE_PDE_TYPE_PDE_DISABLED,
2774 ("GCPhys=%RGp %R[pgmpage]\n", GCPhys, pPage), VERR_PGM_LOAD_UNEXPECTED_PAGE_TYPE);
2776 rc = pgmPhysFreePage(pVM, pReq, &cPendingPages, pPage, GCPhys);
2779 Assert(PGM_PAGE_IS_ZERO(pPage));
2780 PGM_PAGE_SET_STATE(pVM, pPage, PGM_PAGE_STATE_BALLOONED);
2788 rc = pgmPhysGCPhys2CCPtrInternal(pVM, pPage, GCPhys, &pvDstPage, &PgMpLck);
2789 AssertLogRelMsgRCReturn(rc, ("GCPhys=%RGp %R[pgmpage] rc=%Rrc\n", GCPhys, pPage, rc), rc);