]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers/hv: add CPU offlining support
authorHamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Fri, 17 Jan 2025 20:33:08 +0000 (15:33 -0500)
committerWei Liu <wei.liu@kernel.org>
Thu, 13 Feb 2025 23:43:58 +0000 (23:43 +0000)
commit3a7f7785eae7cf012af128ca9e383c91e4955354
tree2e9ec9a06cf804c7e75129b3a8bc922f10f31931
parent5e4304ff8cd9330690de73df7d047014dce191bd
drivers/hv: add CPU offlining support

Currently, it is tedious to offline CPUs in a Hyper-V VM since CPUs may
have VMBus channels attached to them that a user would have to manually
rebind elsewhere. So, as made mention of in
commit d570aec0f2154 ("Drivers: hv: vmbus: Synchronize init_vp_index()
vs. CPU hotplug"), rebind channels associated with CPUs that a user is
trying to offline to a new "randomly" selected CPU.

Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Michael Kelley <mhklinux@outlook.com>
Cc: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/20250117203309.192072-3-hamzamahfooz@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250117203309.192072-3-hamzamahfooz@linux.microsoft.com>
drivers/hv/hv.c