diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2015-08-05 09:52:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-05 20:41:31 +0200 |
commit | 9f01ec53458d9e9b68f1c555e773b5d1a1f66e94 (patch) | |
tree | ce76ed3d4a11ec2035a42a154a735363f642250f /drivers/hv/hyperv_vmbus.h | |
parent | drivers:hv: Move MMIO range picking from hyper_fb to hv_vmbus (diff) | |
download | linux-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.h | 5 |
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; |