]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - arch/x86/hyperv/hv_init.c
Drivers: hv: restore TSC page cleanup before kexec
[thirdparty/kernel/stable.git] / arch / x86 / hyperv / hv_init.c
index d6b018b86c424cfd6d54806e7f2d2592f649306f..b371d0e984a988729c19d29ce09098a972d7fbb7 100644 (file)
@@ -178,6 +178,10 @@ void hyperv_cleanup(void)
        /* Reset the hypercall page */
        hypercall_msr.as_uint64 = 0;
        wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64);
+
+       /* Reset the TSC page */
+       hypercall_msr.as_uint64 = 0;
+       wrmsrl(HV_X64_MSR_REFERENCE_TSC, hypercall_msr.as_uint64);
 }
 EXPORT_SYMBOL_GPL(hyperv_cleanup);