• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/hv/

Lines Matching defs:gHvContext

31 struct hv_context gHvContext = {
137 volatile void *hypercallPage = gHvContext.HypercallPage;
165 volatile void *hypercallPage = gHvContext.HypercallPage;
195 memset(gHvContext.synICEventPage, 0, sizeof(void *) * MAX_NUM_CPUS);
196 memset(gHvContext.synICMessagePage, 0, sizeof(void *) * MAX_NUM_CPUS);
212 rdmsrl(HV_X64_MSR_GUEST_OS_ID, gHvContext.GuestId);
214 if (gHvContext.GuestId != 0) {
216 gHvContext.GuestId);
222 gHvContext.GuestId = HV_LINUX_GUEST_ID;
253 gHvContext.HypercallPage = virtAddr;
256 gHvContext.HypercallPage,
260 gHvContext.SignalEventBuffer =
263 if (!gHvContext.SignalEventBuffer)
266 gHvContext.SignalEventParam =
268 (ALIGN_UP((unsigned long)gHvContext.SignalEventBuffer,
270 gHvContext.SignalEventParam->ConnectionId.Asu32 = 0;
271 gHvContext.SignalEventParam->ConnectionId.u.Id =
273 gHvContext.SignalEventParam->FlagNumber = 0;
274 gHvContext.SignalEventParam->RsvdZ = 0;
300 kfree(gHvContext.SignalEventBuffer);
301 gHvContext.SignalEventBuffer = NULL;
302 gHvContext.SignalEventParam = NULL;
304 if (gHvContext.HypercallPage) {
307 vfree(gHvContext.HypercallPage);
308 gHvContext.HypercallPage = NULL;
362 status = HvDoHypercall(HvCallSignalEvent, gHvContext.SignalEventParam,
385 if (!gHvContext.HypercallPage)
393 gHvContext.synICMessagePage[cpu] = (void *)get_zeroed_page(GFP_ATOMIC);
395 if (gHvContext.synICMessagePage[cpu] == NULL) {
401 gHvContext.synICEventPage[cpu] = (void *)get_zeroed_page(GFP_ATOMIC);
403 if (gHvContext.synICEventPage[cpu] == NULL) {
412 simp.BaseSimpGpa = virt_to_phys(gHvContext.synICMessagePage[cpu])
422 siefp.BaseSiefpGpa = virt_to_phys(gHvContext.synICEventPage[cpu])
452 gHvContext.SynICInitialized = true;
456 if (gHvContext.synICEventPage[cpu])
457 osd_PageFree(gHvContext.synICEventPage[cpu], 1);
459 if (gHvContext.synICMessagePage[cpu])
460 osd_PageFree(gHvContext.synICMessagePage[cpu], 1);
474 if (!gHvContext.SynICInitialized)
497 osd_PageFree(gHvContext.synICMessagePage[cpu], 1);
498 osd_PageFree(gHvContext.synICEventPage[cpu], 1);