summaryrefslogtreecommitdiffstats
path: root/drivers/hv/channel_mgmt.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2012-12-01 15:46:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 20:39:14 +0100
commitabbf3b2aa090b4a6bf22c935924b6467990266da (patch)
tree4a4f3a84ac7b05b1608c2ee9552c5899de6981bd /drivers/hv/channel_mgmt.c
parentDrivers: hv: Setup a mapping for Hyper-V's notion cpu ID (diff)
downloadlinux-abbf3b2aa090b4a6bf22c935924b6467990266da.tar.xz
linux-abbf3b2aa090b4a6bf22c935924b6467990266da.zip
Drivers: hv: Add state to manage incoming channel interrupt load
Add state to bind a channel to a specific VCPU. This will help us better distribute incoming interrupt load. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/channel_mgmt.c')
-rw-r--r--drivers/hv/channel_mgmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index f4d990285d99..56ed45c74d01 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -302,6 +302,8 @@ static void vmbus_onoffer(struct vmbus_channel_message_header *hdr)
offer->connection_id;
}
+ newchannel->target_vp = 0;
+
memcpy(&newchannel->offermsg, offer,
sizeof(struct vmbus_channel_offer_channel));
newchannel->monitor_grp = (u8)offer->monitorid / 32;