summaryrefslogtreecommitdiffstats
path: root/drivers/hv/hyperv_vmbus.h
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2015-08-05 00:52:38 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-05 11:41:31 -0700
commit9f01ec53458d9e9b68f1c555e773b5d1a1f66e94 (patch)
treece76ed3d4a11ec2035a42a154a735363f642250f /drivers/hv/hyperv_vmbus.h
parent3546448338e76a52d4f86eb3680cb2934e22d89b (diff)
downloadop-kernel-dev-9f01ec53458d9e9b68f1c555e773b5d1a1f66e94.zip
op-kernel-dev-9f01ec53458d9e9b68f1c555e773b5d1a1f66e94.tar.gz
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 6383707..6f25825 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;
OpenPOWER on IntegriCloud