]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Drivers: hv: move panic report code from vmbus to hv early init code
authorLong Li <longli@microsoft.com>
Thu, 20 Apr 2023 22:49:06 +0000 (15:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Jul 2025 08:57:58 +0000 (10:57 +0200)
commitca9fc954e44b8088492d0eb5f480d789751b9a40
tree9e6ead3620122232cfc841ff25983c06d80ec450
parent49ae5d6770c6c5c8350ce684adb6512ae4e51913
Drivers: hv: move panic report code from vmbus to hv early init code

[ Upstream commit 9c318a1d9b5000c77527011f158a75c5483510f5 ]

The panic reporting code was added in commit 81b18bce48af
("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic")

It was added to the vmbus driver. The panic reporting has no dependence
on vmbus, and can be enabled at an earlier boot time when Hyper-V is
initialized.

This patch moves the panic reporting code out of vmbus. There is no
functionality changes. During moving, also refactored some cleanup
functions into hv_kmsg_dump_unregister().

Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1682030946-6372-1-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Stable-dep-of: 09eea7ad0b8e ("Drivers: hv: Allocate interrupt and monitor pages aligned to system page boundary")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/hv.c
drivers/hv/hv_common.c
drivers/hv/vmbus_drv.c