]> git.baikalelectronics.ru Git - kernel.git/commit
x86/Hyper-V: Report crash data in die() when panic_on_oops is set
authorTianyu Lan <Tianyu.Lan@microsoft.com>
Mon, 6 Apr 2020 15:53:31 +0000 (08:53 -0700)
committerWei Liu <wei.liu@kernel.org>
Sat, 11 Apr 2020 16:19:07 +0000 (17:19 +0100)
commitf7f9933bb0681347a3045a792035b885f2ca0528
tree0a9c42a1b17d9e538b97afdac98e3a6344e873ee
parent50ce6e4cc64d153c7c3ed32ff80c7df4289ed4cf
x86/Hyper-V: Report crash data in die() when panic_on_oops is set

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: ec2ffc6788fa ("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>
arch/x86/hyperv/hv_init.c
drivers/hv/vmbus_drv.c
include/asm-generic/mshyperv.h