Lines Matching defs:iUser

51 static int pgmPoolTrackAddUser(PPGMPOOL pPool, PPGMPOOLPAGE pPage, uint16_t iUser, uint32_t iUserTable);
2015 * @param iUser The user index.
2017 static int pgmPoolCacheFreeOne(PPGMPOOL pPool, uint16_t iUser)
2032 if (iToFree == iUser && iUser != NIL_PGMPOOL_IDX)
2047 Assert(iToFree != iUser);
2191 * @param iUser The shadow page pool index of the user table. This is
2198 uint16_t iUser, uint32_t iUserTable, PPPGMPOOLPAGE ppPage)
2204 Log3(("pgmPoolCacheAlloc: %RGp kind %s iUser=%d iUserTable=%x SLOT=%d\n", GCPhys, pgmPoolPoolKindToStr(enmKind), iUser, iUserTable, i));
2223 if (iUser != NIL_PGMPOOL_IDX)
2224 rc = pgmPoolTrackAddUser(pPool, pPage, iUser, iUserTable);
2783 * @param iUser The user index.
2785 static int pgmPoolTrackFreeOneUser(PPGMPOOL pPool, uint16_t iUser)
2795 int rc2 = pgmPoolCacheFreeOne(pPool, iUser);
2815 * @param iUser The user index.
2818 DECLINLINE(int) pgmPoolTrackInsert(PPGMPOOL pPool, PPGMPOOLPAGE pPage, RTGCPHYS GCPhys, uint16_t iUser, uint32_t iUserTable)
2823 LogFlow(("pgmPoolTrackInsert GCPhys=%RGp iUser=%d iUserTable=%x\n", GCPhys, iUser, iUserTable));
2825 if (iUser != NIL_PGMPOOL_IDX)
2837 AssertMsg(paUsers[i].iUser != iUser || paUsers[i].iUserTable != iUserTable, ("%x %x vs new %x %x\n", paUsers[i].iUser, paUsers[i].iUserTable, iUser, iUserTable));
2849 rc = pgmPoolTrackFreeOneUser(pPool, iUser);
2861 paUsers[i].iUser = iUser;
2902 * @param iUser The user index.
2905 static int pgmPoolTrackAddUser(PPGMPOOL pPool, PPGMPOOLPAGE pPage, uint16_t iUser, uint32_t iUserTable)
2907 Log3(("pgmPoolTrackAddUser: GCPhys=%RGp iUser=%%x iUserTable=%x\n", pPage->GCPhys, iUser, iUserTable));
2909 Assert(iUser != NIL_PGMPOOL_IDX);
2923 AssertMsg(paUsers[i].iUser != iUser || paUsers[i].iUserTable != iUserTable, ("%x %x vs new %x %x\n", paUsers[i].iUser, paUsers[i].iUserTable, iUser, iUserTable));
2935 int rc = pgmPoolTrackFreeOneUser(pPool, iUser);
2946 paUsers[i].iUser = iUser;
2971 * @param iUser The shadow page pool index of the user table.
2976 static void pgmPoolTrackFreeUser(PPGMPOOL pPool, PPGMPOOLPAGE pPage, uint16_t iUser, uint32_t iUserTable)
2978 Log3(("pgmPoolTrackFreeUser %RGp %x %x\n", pPage->GCPhys, iUser, iUserTable));
2980 Assert(iUser != NIL_PGMPOOL_IDX);
2989 && paUsers[i].iUser == iUser
2994 paUsers[i].iUser = NIL_PGMPOOL_IDX;
3004 if ( paUsers[i].iUser == iUser
3012 paUsers[i].iUser = NIL_PGMPOOL_IDX;
3022 AssertFatalMsgFailed(("Didn't find the user entry! iUser=%d iUserTable=%#x GCPhys=%RGp\n",
3023 iUser, iUserTable, pPage->GCPhys));
3738 Assert(pUser->iUser != NIL_PGMPOOL_IDX);
3739 Assert(pUser->iUser < pPool->cCurPages);
3745 PPGMPOOLPAGE pUserPage = &pPool->aPages[pUser->iUser];
3861 AssertFatalMsgFailed(("enmKind=%d iUser=%d iUserTable=%#x\n", pUserPage->enmKind, pUser->iUser, pUser->iUserTable));
3886 paUsers[i].iUser = NIL_PGMPOOL_IDX;
4928 * @param iUser The shadow page pool index of the user table.
4933 void pgmPoolFreeByPage(PPGMPOOL pPool, PPGMPOOLPAGE pPage, uint16_t iUser, uint32_t iUserTable)
4938 LogFlow(("pgmPoolFreeByPage: pPage=%p:{.Key=%RHp, .idx=%d, enmKind=%s} iUser=%d iUserTable=%#x\n",
4939 pPage, pPage->Core.Key, pPage->idx, pgmPoolPoolKindToStr(pPage->enmKind), iUser, iUserTable));
4943 if (iUser != NIL_PGMPOOL_IDX)
4944 pgmPoolTrackFreeUser(pPool, pPage, iUser, iUserTable);
4961 * @param iUser The user of the page.
4963 static int pgmPoolMakeMoreFreePages(PPGMPOOL pPool, PGMPOOLKIND enmKind, uint16_t iUser)
4966 LogFlow(("pgmPoolMakeMoreFreePages: enmKind=%d iUser=%d\n", enmKind, iUser));
4996 return pgmPoolCacheFreeOne(pPool, iUser);
5018 * @param iUser The shadow page pool index of the user table. Root
5021 * root pages (iUser == NIL_PGMPOOL_IDX).
5026 uint16_t iUser, uint32_t iUserTable, bool fLockPage, PPPGMPOOLPAGE ppPage)
5030 LogFlow(("pgmPoolAlloc: GCPhys=%RGp enmKind=%s iUser=%d iUserTable=%#x\n", GCPhys, pgmPoolPoolKindToStr(enmKind), iUser, iUserTable));
5040 int rc2 = pgmPoolCacheAlloc(pPool, GCPhys, enmKind, enmAccess, fA20Enabled, iUser, iUserTable, ppPage);
5059 rc = pgmPoolMakeMoreFreePages(pPool, enmKind, iUser);
5106 int rc3 = pgmPoolTrackInsert(pPool, pPage, GCPhys, iUser, iUserTable);
5153 * @param iUser The shadow page pool index of the user table.
5158 void pgmPoolFree(PVM pVM, RTHCPHYS HCPhys, uint16_t iUser, uint32_t iUserTable)
5160 LogFlow(("pgmPoolFree: HCPhys=%RHp iUser=%d iUserTable=%#x\n", HCPhys, iUser, iUserTable));
5162 pgmPoolFreeByPage(pPool, pgmPoolGetPage(pPool, HCPhys), iUser, iUserTable);
5387 paUsers[i].iUser = NIL_PGMPOOL_IDX;