Drivers: hv: vmbus: Implement NUMA aware CPU affinity for channels
authorK. Y. Srinivasan <kys@microsoft.com>
Sun, 31 May 2015 06:37:48 +0000 (23:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jun 2015 01:56:31 +0000 (10:56 +0900)
commit1f656ff3fdddc2f59649cc84b633b799908f1f7b
tree4e7745c67619831e1e626dc847fa79c6e28fa671
parent9c6e64adf200d3bac0dd47d52cdbd3bd428384a5
Drivers: hv: vmbus: Implement NUMA aware CPU affinity for channels

Channels/sub-channels can be affinitized to VCPUs in the guest. Implement
this affinity in a way that is NUMA aware. The current protocol distributed
the primary channels uniformly across all available CPUs. The new protocol
is NUMA aware: primary channels are distributed across the available NUMA
nodes while the sub-channels within a primary channel are distributed amongst
CPUs within the NUMA node assigned to the primary channel.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c
include/linux/hyperv.h