Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic
authorSunil Muthuswamy <sunilmut@microsoft.com>
Sun, 8 Jul 2018 02:56:51 +0000 (02:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Jul 2018 13:54:31 +0000 (15:54 +0200)
commit81b18bce48af3e222ca9eebb3b931f59141b7b49
tree6b54ead39883ffb38b2665882a5a7ebdfe8086f6
parente464d28273f895bfc57bfec2beb8a894eb45237c
Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

In the VM mode on Hyper-V, currently, when the kernel panics, an error
code and few register values are populated in an MSR and the Hypervisor
notified. This information is collected on the host. The amount of
information currently collected is found to be limited and not very
actionable. To gather more actionable data, such as stack trace, the
proposal is to write one page worth of kmsg data on an allocated page
and the Hypervisor notified of the page address through the MSR.

- Sysctl option to control the behavior, with ON by default.

Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/sysctl/kernel.txt
arch/x86/hyperv/hv_init.c
arch/x86/include/asm/hyperv-tlfs.h
arch/x86/include/asm/mshyperv.h
drivers/hv/vmbus_drv.c