RE: [PATCH V3 4/6] x86/Hyper-V: Report crash register data or ksmg before running crash kernel
From: Michael Kelley
Date: Wed Mar 25 2020 - 14:33:35 EST
From: Tianyu Lan <Tianyu.Lan@xxxxxxxxxxxxx> Sent: Tuesday, March 24, 2020 12:57 AM
>
> We want to notify Hyper-V when a Linux guest VM crash occurs, so
> there is a record of the crash even when kdump is enabled. But
> crash_kexec_post_notifiers defaults to "false", so the kdump kernel
> runs before the notifiers and Hyper-V never gets notified. Fix this by
> always setting crash_kexec_post_notifiers to be true for Hyper-V VMs.
>
> Signed-off-by: Tianyu Lan <Tianyu.Lan@xxxxxxxxxxxxx>
> ---
> Change since v1:
> Update commit log
> ---
> arch/x86/kernel/cpu/mshyperv.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
Reviewed-by: Michael Kelley <mikelley@xxxxxxxxxxxxx>