kernel-fxtec-pro1x/arch/x86/hyperv
Tianyu Lan f904261dda x86/Hyper-V: Report crash data in die() when panic_on_oops is set
[ Upstream commit f3a99e761efa616028b255b4de58e9b5b87c5545 ]

When oops happens with panic_on_oops unset, the oops
thread is killed by die() and system continues to run.
In such case, guest should not report crash register
data to host since system still runs. Check panic_on_oops
and return directly in hyperv_report_panic() when the function
is called in the die() and panic_on_oops is unset. Fix it.

Fixes: 7ed4325a44 ("Drivers: hv: vmbus: Make panic reporting to be more useful")
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200406155331.2105-7-Tianyu.Lan@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-23 10:30:17 +02:00
..
hv_apic.c x86/hyper-v: rename ipi_arg_{ex,non_ex} structures 2018-09-20 00:51:42 +02:00
hv_init.c x86/Hyper-V: Report crash data in die() when panic_on_oops is set 2020-04-23 10:30:17 +02:00
Makefile X86/Hyper-V: Add flush HvFlushGuestPhysicalAddressSpace hypercall support 2018-08-06 17:59:04 +02:00
mmu.c x86/hyper-v: Fix overflow bug in fill_gva_list() 2019-09-21 07:17:13 +02:00
nested.c X86/Hyper-V: Add hyperv_nested_flush_guest_mapping ftrace support 2018-08-06 17:59:05 +02:00