Skip to content

Commit 91a076d

Browse files
mrathor99liuw
authored andcommitted
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>
1 parent 77c3a45 commit 91a076d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

arch/x86/kernel/cpu/mshyperv.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static void hv_machine_shutdown(void)
255255
#endif /* CONFIG_KEXEC_CORE */
256256

257257
#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)
259259
{
260260
if (hv_crash_handler)
261261
hv_crash_handler(regs);
@@ -625,7 +625,8 @@ static void __init ms_hyperv_init_platform(void)
625625
machine_ops.shutdown = hv_machine_shutdown;
626626
#endif
627627
#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;
629630
#endif
630631
#endif
631632
/*

0 commit comments

Comments
 (0)