Lines Matching refs:pNew
345 PPGMVIRTHANDLER pNew;
346 int rc = MMHyperAlloc(pVM, RT_OFFSETOF(PGMVIRTHANDLER, aPhysToVirt[cPages]), 0, MM_TAG_PGM_HANDLERS, (void **)&pNew); /** @todo r=bird: incorrect member name PhysToVirt? */
350 pNew->Core.Key = GCPtr;
351 pNew->Core.KeyLast = GCPtrLast;
353 pNew->enmType = enmType;
354 pNew->pfnInvalidateR3 = pfnInvalidateR3;
355 pNew->pfnHandlerRC = pfnHandlerRC;
356 pNew->pfnHandlerR3 = pfnHandlerR3;
357 pNew->pszDesc = pszDesc;
358 pNew->cb = GCPtrLast - GCPtr + 1;
359 pNew->cPages = cPages;
363 pNew->aPhysToVirt[cPages].Core.Key = NIL_RTGCPHYS;
364 pNew->aPhysToVirt[cPages].Core.KeyLast = NIL_RTGCPHYS;
365 pNew->aPhysToVirt[cPages].offVirtHandler = -RT_OFFSETOF(PGMVIRTHANDLER, aPhysToVirt[cPages]);
366 pNew->aPhysToVirt[cPages].offNextAlias = 0;
381 PPGMVIRTHANDLER pCur = (PPGMVIRTHANDLER)RTAvlroGCPtrGetBestFit(pRoot, pNew->Core.Key, true);
385 pCur = (PPGMVIRTHANDLER)RTAvlroGCPtrGetBestFit(pRoot, pNew->Core.Key, false);
396 MMHyperFree(pVM, pNew);
401 if (RTAvlroGCPtrInsert(pRoot, &pNew->Core))
413 rc = STAMR3RegisterF(pVM, &pNew->Stat, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, pszDesc,
414 "/PGM/VirtHandler/Calls/%RGv-%RGv", pNew->Core.Key, pNew->Core.KeyLast);
422 MMHyperFree(pVM, pNew);