linux-stable/drivers/hv
Anssi Hannula 4e2ce79413 hv_balloon: rate-limit "Unhandled message" warning
[ Upstream commit 1d7286729a ]

For a couple of times I have encountered a situation where

  hv_balloon: Unhandled message: type: 12447

is being flooded over 1 million times per second with various values,
filling the log and consuming cycles, making debugging difficult.

Add rate limiting to the message.

Most other Hyper-V drivers already have similar rate limiting in their
message callbacks.

The cause of the floods in my case was probably fixed by 96d9d1fa5c
("Drivers: hv: balloon: account for vmbus packet header in
max_pkt_size").

Fixes: 9aa8b50b2b ("Drivers: hv: Add Hyper-V balloon driver")
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220222141400.98160-1-anssi.hannula@bitwise.fi
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 13:58:14 +02:00
..
channel.c Drivers: hv: vmbus: Initialize VMbus ring buffer for Isolation VM 2021-10-28 11:26:36 +00:00
channel_mgmt.c Drivers: hv: vmbus: Initialize request offers message for Isolation VM 2022-01-05 20:39:14 +00:00
connection.c Drivers: hv: vmbus: Add SNP support for VMbus channel initiate message 2021-10-28 11:22:55 +00:00
hv.c x86/hyperv: Add ghcb hvcall support for SNP VM 2021-10-28 11:22:49 +00:00
hv_balloon.c hv_balloon: rate-limit "Unhandled message" warning 2022-04-08 13:58:14 +02:00
hv_common.c Drivers: hv: Fix definition of hypercall input & output arg variables 2021-12-28 14:18:43 +00:00
hv_debugfs.c hv_debugfs: Make hv_debug_root static 2020-04-04 17:47:43 +01:00
hv_fcopy.c Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer 2021-05-14 17:37:46 +00:00
hv_kvp.c Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer 2021-05-14 17:37:46 +00:00
hv_snapshot.c hv_utils: Set the maximum packet size for VSS driver to the length of the receive buffer 2021-08-25 19:03:20 +00:00
hv_trace.c
hv_trace.h Drivers: hv: vmbus: Drivers: hv: vmbus: Introduce CHANNELMSG_MODIFYCHANNEL_RESPONSE 2021-04-18 13:03:11 +00:00
hv_trace_balloon.h
hv_util.c drivers: hv: Decouple Hyper-V clock/timer code from VMbus drivers 2021-07-19 09:24:28 +00:00
hv_utils_transport.c Drivers: hv: utils: Make use of the helper macro LIST_HEAD() 2022-02-09 14:33:21 +00:00
hv_utils_transport.h
hyperv_vmbus.h hyperv-next for 5.16 2021-11-02 10:56:49 -07:00
Kconfig hv: utils: add PTP_1588_CLOCK to Kconfig to fix build 2021-11-28 21:22:35 +00:00
Makefile Drivers: hv: Move Hyper-V extended capability check to arch neutral code 2021-06-05 10:22:34 +00:00
ring_buffer.c Drivers: hv : vmbus: Adding NULL pointer check 2021-10-28 11:40:32 +00:00
vmbus_drv.c Drivers: hv: vmbus: Rework use of DMA_BIT_MASK(64) 2022-02-07 17:55:30 +00:00