summaryrefslogtreecommitdiffstats
path: root/drivers/hv/hyperv_vmbus.h
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2015-08-05 09:52:38 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-05 20:41:31 +0200
commit9f01ec53458d9e9b68f1c555e773b5d1a1f66e94 (patch)
treece76ed3d4a11ec2035a42a154a735363f642250f /drivers/hv/hyperv_vmbus.h
parentdrivers:hv: Move MMIO range picking from hyper_fb to hv_vmbus (diff)
downloadlinux-9f01ec53458d9e9b68f1c555e773b5d1a1f66e94.tar.xz
linux-9f01ec53458d9e9b68f1c555e773b5d1a1f66e94.zip
Drivers: hv: vmbus: Improve the CPU affiliation for channels
The current code tracks the assigned CPUs within a NUMA node in the context of the primary channel. So, if we have a VM with a single NUMA node with 8 VCPUs, we may end up unevenly distributing the channel load. Fix the issue by tracking affiliations globally. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hyperv_vmbus.h')
-rw-r--r--drivers/hv/hyperv_vmbus.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
index 638370701657..6f258255ac94 100644
--- a/drivers/hv/hyperv_vmbus.h
+++ b/drivers/hv/hyperv_vmbus.h
@@ -551,6 +551,11 @@ struct hv_context {
* Support PV clockevent device.
*/
struct clock_event_device *clk_evt[NR_CPUS];
+ /*
+ * To manage allocations in a NUMA node.
+ * Array indexed by numa node ID.
+ */
+ struct cpumask *hv_numa_map;
};
extern struct hv_context hv_context;