x86/Hyper-V: Report crash register data when sysctl_record_panic_msg is not set
authorTianyu Lan <Tianyu.Lan@microsoft.com>
Mon, 6 Apr 2020 15:53:30 +0000 (08:53 -0700)
committerWei Liu <wei.liu@kernel.org>
Sat, 11 Apr 2020 16:19:06 +0000 (17:19 +0100)
commit040026df7088c56ccbad28f7042308f67bde63df
treefedd5149fd315ae728807a18321be79b255c2b17
parenta11589563e96bf262767294b89b25a9d44e7303b
x86/Hyper-V: Report crash register data when sysctl_record_panic_msg is not set

When sysctl_record_panic_msg is not set, the panic will
not be reported to Hyper-V via hyperv_report_panic_msg().
So the crash should be reported via hyperv_report_panic().

Fixes: 81b18bce48af ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic")
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Link: https://lore.kernel.org/r/20200406155331.2105-6-Tianyu.Lan@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/vmbus_drv.c