Lines Matching refs:hypercall_msr
285 union hv_x64_msr_hypercall_contents hypercall_msr; in hv_suspend() local
302 rdmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hv_suspend()
303 hypercall_msr.enable = 0; in hv_suspend()
304 wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hv_suspend()
312 union hv_x64_msr_hypercall_contents hypercall_msr; in hv_resume() local
319 rdmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hv_resume()
320 hypercall_msr.enable = 1; in hv_resume()
321 hypercall_msr.guest_physical_address = in hv_resume()
323 wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hv_resume()
390 union hv_x64_msr_hypercall_contents hypercall_msr; in hyperv_init() local
435 rdmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hyperv_init()
436 hypercall_msr.enable = 1; in hyperv_init()
452 wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hyperv_init()
456 src = memremap(hypercall_msr.guest_physical_address << PAGE_SHIFT, PAGE_SIZE, in hyperv_init()
463 hypercall_msr.guest_physical_address = vmalloc_to_pfn(hv_hypercall_pg); in hyperv_init()
464 wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hyperv_init()
521 union hv_x64_msr_hypercall_contents hypercall_msr; in hyperv_cleanup() local
537 hypercall_msr.as_uint64 = 0; in hyperv_cleanup()
538 wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hyperv_cleanup()
541 hypercall_msr.as_uint64 = 0; in hyperv_cleanup()
542 wrmsrl(HV_X64_MSR_REFERENCE_TSC, hypercall_msr.as_uint64); in hyperv_cleanup()
579 union hv_x64_msr_hypercall_contents hypercall_msr; in hv_is_hyperv_initialized() local
592 hypercall_msr.as_uint64 = 0; in hv_is_hyperv_initialized()
593 rdmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hv_is_hyperv_initialized()
595 return hypercall_msr.enable; in hv_is_hyperv_initialized()