Lines Matching defs:pRegion
130 PGIMMMIO2REGION pRegion = &pHv->aMmio2Regions[GIM_HV_HYPERCALL_PAGE_REGION_IDX];
131 pRegion->iRegion = GIM_HV_HYPERCALL_PAGE_REGION_IDX;
132 pRegion->fRCMapping = false;
133 pRegion->cbRegion = PAGE_SIZE;
134 pRegion->GCPhysPage = NIL_RTGCPHYS;
135 RTStrCopy(pRegion->szDescription, sizeof(pRegion->szDescription), "Hyper-V hypercall page");
137 pRegion = &pHv->aMmio2Regions[GIM_HV_REF_TSC_PAGE_REGION_IDX];
138 pRegion->iRegion = GIM_HV_REF_TSC_PAGE_REGION_IDX;
139 pRegion->fRCMapping = false;
140 pRegion->cbRegion = PAGE_SIZE;
141 pRegion->GCPhysPage = NIL_RTGCPHYS;
142 RTStrCopy(pRegion->szDescription, sizeof(pRegion->szDescription), "Hyper-V TSC page");
335 PGIMMMIO2REGION pRegion = &pHv->aMmio2Regions[i];
336 GIMR3Mmio2Unmap(pVM, pRegion);
474 PGIMMMIO2REGION pRegion = &pHv->aMmio2Regions[GIM_HV_HYPERCALL_PAGE_REGION_IDX];
475 SSMR3GetU8(pSSM, &pRegion->iRegion);
476 SSMR3GetBool(pSSM, &pRegion->fRCMapping);
477 SSMR3GetU32(pSSM, &pRegion->cbRegion);
478 SSMR3GetGCPhys(pSSM, &pRegion->GCPhysPage);
479 rc = SSMR3GetStrZ(pSSM, pRegion->szDescription, sizeof(pRegion->szDescription));
483 Assert(pRegion->GCPhysPage != NIL_RTGCPHYS);
484 if (RT_LIKELY(pRegion->fRegistered))
486 rc = gimR3HvEnableHypercallPage(pVM, pRegion->GCPhysPage);
489 pRegion->GCPhysPage, rc);
499 pRegion = &pHv->aMmio2Regions[GIM_HV_REF_TSC_PAGE_REGION_IDX];
500 SSMR3GetU8(pSSM, &pRegion->iRegion);
501 SSMR3GetBool(pSSM, &pRegion->fRCMapping);
502 SSMR3GetU32(pSSM, &pRegion->cbRegion);
503 SSMR3GetGCPhys(pSSM, &pRegion->GCPhysPage);
504 SSMR3GetStrZ(pSSM, pRegion->szDescription, sizeof(pRegion->szDescription));
509 Assert(pRegion->GCPhysPage != NIL_RTGCPHYS);
510 if (pRegion->fRegistered)
512 rc = gimR3HvEnableTscPage(pVM, pRegion->GCPhysPage, true /* fUseThisTscSeq */, uTscSequence);
515 pRegion->GCPhysPage, rc);
539 PGIMMMIO2REGION pRegion = &pVM->gim.s.u.Hv.aMmio2Regions[GIM_HV_REF_TSC_PAGE_REGION_IDX];
543 if (pRegion->fMapped)
548 if (pRegion->GCPhysPage == GCPhysTscPage)
561 Assert(!pRegion->fMapped);
562 rc = GIMR3Mmio2Map(pVM, pRegion, GCPhysTscPage);
565 Assert(pRegion->GCPhysPage == GCPhysTscPage);
574 PGIMHVREFTSC pRefTsc = (PGIMHVREFTSC)pRegion->pvPageR3;
608 PGIMMMIO2REGION pRegion = &pHv->aMmio2Regions[GIM_HV_REF_TSC_PAGE_REGION_IDX];
609 if (pRegion->fMapped)
611 GIMR3Mmio2Unmap(pVM, pRegion);
612 Assert(!pRegion->fMapped);
630 PGIMMMIO2REGION pRegion = &pHv->aMmio2Regions[GIM_HV_HYPERCALL_PAGE_REGION_IDX];
631 if (pRegion->fMapped)
633 GIMR3Mmio2Unmap(pVM, pRegion);
634 Assert(!pRegion->fMapped);
654 PGIMMMIO2REGION pRegion = &pVM->gim.s.u.Hv.aMmio2Regions[GIM_HV_HYPERCALL_PAGE_REGION_IDX];
657 if (pRegion->fMapped)
662 if (pRegion->GCPhysPage == GCPhysHypercallPage)
675 Assert(!pRegion->fMapped);
676 int rc = GIMR3Mmio2Map(pVM, pRegion, GCPhysHypercallPage);
679 Assert(pRegion->GCPhysPage == GCPhysHypercallPage);
685 rc = VMMPatchHypercall(pVM, pRegion->pvPageR3, PAGE_SIZE, &cbWritten);
689 uint8_t *pbLast = (uint8_t *)pRegion->pvPageR3 + cbWritten;
708 GIMR3Mmio2Unmap(pVM, pRegion);