Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/hyperv: Rename guest crash shutdown function

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>

authored by

Mukesh Rathor and committed by
Wei Liu
91a076d3 77c3a45a

+3 -2
+3 -2
arch/x86/kernel/cpu/mshyperv.c
··· 255 255 #endif /* CONFIG_KEXEC_CORE */ 256 256 257 257 #ifdef CONFIG_CRASH_DUMP 258 - static void hv_machine_crash_shutdown(struct pt_regs *regs) 258 + static void hv_guest_crash_shutdown(struct pt_regs *regs) 259 259 { 260 260 if (hv_crash_handler) 261 261 hv_crash_handler(regs); ··· 625 625 machine_ops.shutdown = hv_machine_shutdown; 626 626 #endif 627 627 #if defined(CONFIG_CRASH_DUMP) 628 - machine_ops.crash_shutdown = hv_machine_crash_shutdown; 628 + if (!hv_root_partition()) 629 + machine_ops.crash_shutdown = hv_guest_crash_shutdown; 629 630 #endif 630 631 #endif 631 632 /*