]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/hyperv: Rename guest crash shutdown function
authorMukesh Rathor <mrathor@linux.microsoft.com>
Mon, 6 Oct 2025 22:42:03 +0000 (15:42 -0700)
committerWei Liu <wei.liu@kernel.org>
Sat, 15 Nov 2025 06:18:16 +0000 (06:18 +0000)
Rename hv_machine_crash_shutdown to more appropriate
hv_guest_crash_shutdown and make it applicable to guests only. This
in preparation for the subsequent hypervisor root crash support
patches.

Signed-off-by: Mukesh Rathor <mrathor@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/kernel/cpu/mshyperv.c

index 6802d89ca7909e30f884682bcf7093926db9275a..fac9953a72eff67b33e622de5abe813d099932bf 100644 (file)
@@ -255,7 +255,7 @@ static void hv_machine_shutdown(void)
 #endif /* CONFIG_KEXEC_CORE */
 
 #ifdef CONFIG_CRASH_DUMP
-static void hv_machine_crash_shutdown(struct pt_regs *regs)
+static void hv_guest_crash_shutdown(struct pt_regs *regs)
 {
        if (hv_crash_handler)
                hv_crash_handler(regs);
@@ -625,7 +625,8 @@ static void __init ms_hyperv_init_platform(void)
        machine_ops.shutdown = hv_machine_shutdown;
 #endif
 #if defined(CONFIG_CRASH_DUMP)
-       machine_ops.crash_shutdown = hv_machine_crash_shutdown;
+       if (!hv_root_partition())
+               machine_ops.crash_shutdown = hv_guest_crash_shutdown;
 #endif
 #endif
        /*