diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2015-05-30 23:37:47 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-01 10:56:31 +0900 |
commit | 9c6e64adf200d3bac0dd47d52cdbd3bd428384a5 (patch) | |
tree | bcfd472eacb5f52169cbb15d3af3883cb0f7897a /drivers/hv | |
parent | 0dcacd768ea6fc5bdd7302d43d430b92e047c134 (diff) | |
download | linux-next-9c6e64adf200d3bac0dd47d52cdbd3bd428384a5.tar.gz |
Drivers: hv: vmbus: Use the vp_index map even for channels bound to CPU 0
Map target_cpu to target_vcpu using the mapping table.
We should use the mapping table to transform guest CPU ID to VP Index
as is done for the non-performance critical channels.
While the value CPU 0 is special and will
map to VP index 0, it is good to be consistent.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r-- | drivers/hv/channel_mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 1f1417d19c7e..c3eba37db9b7 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c @@ -406,7 +406,7 @@ static void init_vp_index(struct vmbus_channel *channel, const uuid_le *type_gui * channel, bind it to cpu 0. */ channel->target_cpu = 0; - channel->target_vp = 0; + channel->target_vp = hv_context.vp_index[0]; return; } |