Lines Matching +full:disable +full:- +full:hibernation +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
3 * X86 specific Hyper-V initialization code.
18 #include <asm/hyperv-tlfs.h>
43 /* Storage to save the hypercall page temporarily for hibernation */
59 return -EINVAL; in hyperv_init_ghcb()
69 return -ENOMEM; in hyperv_init_ghcb()
100 * The VP assist page is an "overlay" page (see Hyper-V TLFS's in hv_cpu_init()
176 pr_warn("Hyper-V: reenlightenment support is unavailable\n"); in set_hv_tscchange_cb()
251 * CPU or just disable the feature if there are no online CPUs in hv_cpu_die()
252 * left (happens on hibernation). in hv_cpu_die()
272 * For Generation-2 VM, we exit from pci_arch_init() by returning 0. in hv_pci_init()
279 /* For Generation-1 VM, we'll proceed in pci_arch_init(). */ in hv_pci_init()
289 return -EPERM; in hv_suspend()
293 * across hibernation. Setting hv_hypercall_pg to NULL ensures in hv_suspend()
301 /* Disable the hypercall page in the hypervisor */ in hv_suspend()
318 /* Re-enable the hypercall page */ in hv_resume()
353 * Still register the LAPIC timer, because the direct-mode STIMER is in hv_stimer_setup_percpu_clockev()
354 * not supported by old versions of Hyper-V. This also allows users in hv_stimer_setup_percpu_clockev()
375 hv_current_partition_id = output_page->partition_id; in hv_get_partition_id()
384 * 2. Register Hyper-V specific clocksource.
385 * 3. Setup Hyper-V specific APIC entry points.
430 /* Hyper-V requires to write guest os id via ghcb in SNP IVM. */ in hyperv_init()
472 * apic_intr_mode_init() -> x86_platform.apic_post_init() and in hyperv_init()
473 * apic_bsp_setup() -> setup_local_APIC(). The direct-mode STIMER in hyperv_init()
583 wrmsrl(HV_X64_MSR_CRASH_P2, regs->ip); in hyperv_report_panic()
584 wrmsrl(HV_X64_MSR_CRASH_P3, regs->ax); in hyperv_report_panic()
585 wrmsrl(HV_X64_MSR_CRASH_P4, regs->sp); in hyperv_report_panic()
588 * Let Hyper-V know there is crash data available in hyperv_report_panic()
599 * Ensure that we're really on Hyper-V, and not a KVM or Xen in hv_is_hyperv_initialized()
600 * emulation of Hyper-V in hv_is_hyperv_initialized()