Skip to content

Commit

Permalink
Drivers: hv: vmbus: Use the vp_index map even for channels bound to C…
Browse files Browse the repository at this point in the history
…PU 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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
kattisrinivasan authored and gregkh committed Jun 1, 2015
1 parent 0dcacd7 commit 9c6e64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hv/channel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9c6e64a

Please sign in to comment.