blob: 650c9f0b66425b8b0007422aa8461182ed26256d [file] [log] [blame]
Hank Janssen3e7ee492009-07-13 16:02:34 -07001/*
2 *
3 * Copyright (c) 2009, Microsoft Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16 * Place - Suite 330, Boston, MA 02111-1307 USA.
17 *
18 * Authors:
19 * Haiyang Zhang <haiyangz@microsoft.com>
20 * Hank Janssen <hjanssen@microsoft.com>
21 *
22 */
Hank Janssen0a466182011-03-29 13:58:47 -070023#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
24
Greg Kroah-Hartmana0086dc2009-08-17 17:22:08 -070025#include <linux/kernel.h>
K. Y. Srinivasan0c3b7b22011-02-11 09:59:43 -080026#include <linux/sched.h>
27#include <linux/wait.h>
K. Y. Srinivasan5289d3d2011-08-25 09:49:01 -070028#include <linux/delay.h>
Greg Kroah-Hartmana0086dc2009-08-17 17:22:08 -070029#include <linux/mm.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090030#include <linux/slab.h>
Greg Kroah-Hartmana0086dc2009-08-17 17:22:08 -070031#include <linux/vmalloc.h>
Greg Kroah-Hartman46a97192011-10-04 12:29:52 -070032#include <linux/hyperv.h>
Greg Kroah-Hartman407dd162011-10-11 08:36:44 -060033#include <asm/hyperv.h>
K. Y. Srinivasan0f2a6612011-05-12 19:34:28 -070034#include "hyperv_vmbus.h"
Hank Janssen3e7ee492009-07-13 16:02:34 -070035
Hank Janssen3e7ee492009-07-13 16:02:34 -070036
Haiyang Zhangda9fcb72011-01-26 12:12:14 -080037struct vmbus_connection vmbus_connection = {
38 .conn_state = DISCONNECTED,
39 .next_gpadl_handle = ATOMIC_INIT(0xE1E10),
Hank Janssen3e7ee492009-07-13 16:02:34 -070040};
41
Hank Janssen3e189512010-03-04 22:11:00 +000042/*
Haiyang Zhangc6977672011-01-26 12:12:08 -080043 * vmbus_connect - Sends a connect request on the partition service connection
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -070044 */
Haiyang Zhangc6977672011-01-26 12:12:08 -080045int vmbus_connect(void)
Hank Janssen3e7ee492009-07-13 16:02:34 -070046{
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -070047 int ret = 0;
K. Y. Srinivasan9568a192011-05-10 07:55:39 -070048 int t;
Haiyang Zhang15b2f642011-01-26 12:12:07 -080049 struct vmbus_channel_msginfo *msginfo = NULL;
Greg Kroah-Hartman82250212009-08-26 15:16:04 -070050 struct vmbus_channel_initiate_contact *msg;
Greg Kroah-Hartmandd0813b2009-07-15 14:56:45 -070051 unsigned long flags;
Hank Janssen3e7ee492009-07-13 16:02:34 -070052
Bill Pemberton454f18a2009-07-27 16:47:24 -040053 /* Initialize the vmbus connection */
Haiyang Zhangda9fcb72011-01-26 12:12:14 -080054 vmbus_connection.conn_state = CONNECTING;
55 vmbus_connection.work_queue = create_workqueue("hv_vmbus_con");
56 if (!vmbus_connection.work_queue) {
K. Y. Srinivasan3a7546d2011-06-06 15:50:10 -070057 ret = -ENOMEM;
K. Y. Srinivasanb0043862011-05-10 07:55:44 -070058 goto cleanup;
Bill Pembertonde65a382009-07-29 17:00:09 -040059 }
Hank Janssen3e7ee492009-07-13 16:02:34 -070060
Haiyang Zhangda9fcb72011-01-26 12:12:14 -080061 INIT_LIST_HEAD(&vmbus_connection.chn_msg_list);
Haiyang Zhang15b2f642011-01-26 12:12:07 -080062 spin_lock_init(&vmbus_connection.channelmsg_lock);
Hank Janssen3e7ee492009-07-13 16:02:34 -070063
Haiyang Zhangda9fcb72011-01-26 12:12:14 -080064 INIT_LIST_HEAD(&vmbus_connection.chn_list);
Haiyang Zhang15b2f642011-01-26 12:12:07 -080065 spin_lock_init(&vmbus_connection.channel_lock);
Hank Janssen3e7ee492009-07-13 16:02:34 -070066
Bill Pemberton454f18a2009-07-27 16:47:24 -040067 /*
68 * Setup the vmbus event connection for channel interrupt
69 * abstraction stuff
70 */
K. Y. Srinivasandf3493e2011-02-11 09:59:00 -080071 vmbus_connection.int_page =
72 (void *)__get_free_pages(GFP_KERNEL|__GFP_ZERO, 0);
Haiyang Zhangda9fcb72011-01-26 12:12:14 -080073 if (vmbus_connection.int_page == NULL) {
K. Y. Srinivasan3a7546d2011-06-06 15:50:10 -070074 ret = -ENOMEM;
K. Y. Srinivasanb0043862011-05-10 07:55:44 -070075 goto cleanup;
Hank Janssen3e7ee492009-07-13 16:02:34 -070076 }
77
Haiyang Zhangda9fcb72011-01-26 12:12:14 -080078 vmbus_connection.recv_int_page = vmbus_connection.int_page;
79 vmbus_connection.send_int_page =
80 (void *)((unsigned long)vmbus_connection.int_page +
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -070081 (PAGE_SIZE >> 1));
Hank Janssen3e7ee492009-07-13 16:02:34 -070082
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -070083 /*
84 * Setup the monitor notification facility. The 1st page for
85 * parent->child and the 2nd page for child->parent
Bill Pemberton454f18a2009-07-27 16:47:24 -040086 */
K. Y. Srinivasandf3493e2011-02-11 09:59:00 -080087 vmbus_connection.monitor_pages =
88 (void *)__get_free_pages((GFP_KERNEL|__GFP_ZERO), 1);
Haiyang Zhangda9fcb72011-01-26 12:12:14 -080089 if (vmbus_connection.monitor_pages == NULL) {
K. Y. Srinivasan3a7546d2011-06-06 15:50:10 -070090 ret = -ENOMEM;
K. Y. Srinivasanb0043862011-05-10 07:55:44 -070091 goto cleanup;
Hank Janssen3e7ee492009-07-13 16:02:34 -070092 }
93
Haiyang Zhang15b2f642011-01-26 12:12:07 -080094 msginfo = kzalloc(sizeof(*msginfo) +
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -070095 sizeof(struct vmbus_channel_initiate_contact),
96 GFP_KERNEL);
Haiyang Zhang15b2f642011-01-26 12:12:07 -080097 if (msginfo == NULL) {
Bill Pemberton8cad0af2010-05-05 15:27:32 -040098 ret = -ENOMEM;
K. Y. Srinivasanb0043862011-05-10 07:55:44 -070099 goto cleanup;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700100 }
101
K. Y. Srinivasan9568a192011-05-10 07:55:39 -0700102 init_completion(&msginfo->waitevent);
Bill Pemberton80d11b22010-05-05 15:27:33 -0400103
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800104 msg = (struct vmbus_channel_initiate_contact *)msginfo->msg;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700105
Haiyang Zhangc50f7fb2010-11-08 14:04:38 -0800106 msg->header.msgtype = CHANNELMSG_INITIATE_CONTACT;
107 msg->vmbus_version_requested = VMBUS_REVISION_NUMBER;
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800108 msg->interrupt_page = virt_to_phys(vmbus_connection.int_page);
109 msg->monitor_page1 = virt_to_phys(vmbus_connection.monitor_pages);
Haiyang Zhangc50f7fb2010-11-08 14:04:38 -0800110 msg->monitor_page2 = virt_to_phys(
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800111 (void *)((unsigned long)vmbus_connection.monitor_pages +
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -0700112 PAGE_SIZE));
Hank Janssen3e7ee492009-07-13 16:02:34 -0700113
Bill Pemberton454f18a2009-07-27 16:47:24 -0400114 /*
115 * Add to list before we send the request since we may
116 * receive the response before returning from this routine
117 */
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800118 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
119 list_add_tail(&msginfo->msglistentry,
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800120 &vmbus_connection.chn_msg_list);
Bill Pemberton53af5452009-09-11 21:46:44 -0400121
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800122 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
Hank Janssen3e7ee492009-07-13 16:02:34 -0700123
Haiyang Zhangc6977672011-01-26 12:12:08 -0800124 ret = vmbus_post_msg(msg,
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -0700125 sizeof(struct vmbus_channel_initiate_contact));
126 if (ret != 0) {
K. Y. Srinivasan0c3b7b22011-02-11 09:59:43 -0800127 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800128 list_del(&msginfo->msglistentry);
K. Y. Srinivasan0c3b7b22011-02-11 09:59:43 -0800129 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock,
130 flags);
K. Y. Srinivasanb0043862011-05-10 07:55:44 -0700131 goto cleanup;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700132 }
133
Bill Pemberton454f18a2009-07-27 16:47:24 -0400134 /* Wait for the connection response */
K. Y. Srinivasan2dfde962011-06-16 13:16:34 -0700135 t = wait_for_completion_timeout(&msginfo->waitevent, 5*HZ);
K. Y. Srinivasan9568a192011-05-10 07:55:39 -0700136 if (t == 0) {
K. Y. Srinivasan0c3b7b22011-02-11 09:59:43 -0800137 spin_lock_irqsave(&vmbus_connection.channelmsg_lock,
138 flags);
139 list_del(&msginfo->msglistentry);
140 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock,
141 flags);
142 ret = -ETIMEDOUT;
K. Y. Srinivasanb0043862011-05-10 07:55:44 -0700143 goto cleanup;
K. Y. Srinivasan0c3b7b22011-02-11 09:59:43 -0800144 }
Hank Janssen3e7ee492009-07-13 16:02:34 -0700145
K. Y. Srinivasan0c3b7b22011-02-11 09:59:43 -0800146 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800147 list_del(&msginfo->msglistentry);
K. Y. Srinivasan0c3b7b22011-02-11 09:59:43 -0800148 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
Hank Janssen3e7ee492009-07-13 16:02:34 -0700149
Bill Pemberton454f18a2009-07-27 16:47:24 -0400150 /* Check if successful */
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800151 if (msginfo->response.version_response.version_supported) {
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800152 vmbus_connection.conn_state = CONNECTED;
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -0700153 } else {
Hank Janssen0a466182011-03-29 13:58:47 -0700154 pr_err("Unable to connect, "
155 "Version %d not supported by Hyper-V\n",
156 VMBUS_REVISION_NUMBER);
K. Y. Srinivasan3a7546d2011-06-06 15:50:10 -0700157 ret = -ECONNREFUSED;
K. Y. Srinivasanb0043862011-05-10 07:55:44 -0700158 goto cleanup;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700159 }
160
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800161 kfree(msginfo);
Hank Janssen3e7ee492009-07-13 16:02:34 -0700162 return 0;
163
K. Y. Srinivasanb0043862011-05-10 07:55:44 -0700164cleanup:
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800165 vmbus_connection.conn_state = DISCONNECTED;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700166
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800167 if (vmbus_connection.work_queue)
168 destroy_workqueue(vmbus_connection.work_queue);
Hank Janssen3e7ee492009-07-13 16:02:34 -0700169
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800170 if (vmbus_connection.int_page) {
K. Y. Srinivasandf3493e2011-02-11 09:59:00 -0800171 free_pages((unsigned long)vmbus_connection.int_page, 0);
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800172 vmbus_connection.int_page = NULL;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700173 }
174
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800175 if (vmbus_connection.monitor_pages) {
K. Y. Srinivasandf3493e2011-02-11 09:59:00 -0800176 free_pages((unsigned long)vmbus_connection.monitor_pages, 1);
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800177 vmbus_connection.monitor_pages = NULL;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700178 }
179
Ilia Mirkindd9b15d2011-03-13 00:29:00 -0500180 kfree(msginfo);
Hank Janssen3e7ee492009-07-13 16:02:34 -0700181
Hank Janssen3e7ee492009-07-13 16:02:34 -0700182 return ret;
183}
184
Hank Janssen3e7ee492009-07-13 16:02:34 -0700185
Hank Janssen3e189512010-03-04 22:11:00 +0000186/*
Haiyang Zhangc6977672011-01-26 12:12:08 -0800187 * relid2channel - Get the channel object given its
188 * child relative id (ie channel id)
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -0700189 */
Haiyang Zhangc6977672011-01-26 12:12:08 -0800190struct vmbus_channel *relid2channel(u32 relid)
Hank Janssen3e7ee492009-07-13 16:02:34 -0700191{
Greg Kroah-Hartmanaded7162009-08-18 15:21:19 -0700192 struct vmbus_channel *channel;
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800193 struct vmbus_channel *found_channel = NULL;
Greg Kroah-Hartman0f5e44c2009-07-15 14:57:16 -0700194 unsigned long flags;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700195
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800196 spin_lock_irqsave(&vmbus_connection.channel_lock, flags);
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800197 list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) {
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800198 if (channel->offermsg.child_relid == relid) {
199 found_channel = channel;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700200 break;
201 }
202 }
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800203 spin_unlock_irqrestore(&vmbus_connection.channel_lock, flags);
Hank Janssen3e7ee492009-07-13 16:02:34 -0700204
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800205 return found_channel;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700206}
207
Hank Janssen3e189512010-03-04 22:11:00 +0000208/*
Haiyang Zhangc6977672011-01-26 12:12:08 -0800209 * process_chn_event - Process a channel event notification
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -0700210 */
Olaf Hering35436482011-04-16 18:50:40 +0200211static void process_chn_event(u32 relid)
Hank Janssen3e7ee492009-07-13 16:02:34 -0700212{
Greg Kroah-Hartmanaded7162009-08-18 15:21:19 -0700213 struct vmbus_channel *channel;
K. Y. Srinivasandad76bf2011-08-27 11:31:33 -0700214 unsigned long flags;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700215
Bill Pemberton454f18a2009-07-27 16:47:24 -0400216 /*
217 * Find the channel based on this relid and invokes the
218 * channel callback to process the event
219 */
Haiyang Zhangc6977672011-01-26 12:12:08 -0800220 channel = relid2channel(relid);
Hank Janssen3e7ee492009-07-13 16:02:34 -0700221
K. Y. Srinivasan24326032011-08-31 14:35:57 -0700222 if (!channel) {
223 pr_err("channel not found for relid - %u\n", relid);
224 return;
225 }
226
227 /*
228 * A channel once created is persistent even when there
229 * is no driver handling the device. An unloading driver
230 * sets the onchannel_callback to NULL under the
231 * protection of the channel inbound_lock. Thus, checking
232 * and invoking the driver specific callback takes care of
233 * orderly unloading of the driver.
234 */
235
K. Y. Srinivasandad76bf2011-08-27 11:31:33 -0700236 spin_lock_irqsave(&channel->inbound_lock, flags);
K. Y. Srinivasan24326032011-08-31 14:35:57 -0700237 if (channel->onchannel_callback != NULL)
K. Y. Srinivasandf452fa2011-06-06 15:49:47 -0700238 channel->onchannel_callback(channel->channel_callback_context);
K. Y. Srinivasand9add432011-08-27 11:31:43 -0700239 else
K. Y. Srinivasan24326032011-08-31 14:35:57 -0700240 pr_err("no channel callback for relid - %u\n", relid);
K. Y. Srinivasand9add432011-08-27 11:31:43 -0700241
K. Y. Srinivasandad76bf2011-08-27 11:31:33 -0700242 spin_unlock_irqrestore(&channel->inbound_lock, flags);
Hank Janssen3e7ee492009-07-13 16:02:34 -0700243}
244
Hank Janssen3e189512010-03-04 22:11:00 +0000245/*
Haiyang Zhangc6977672011-01-26 12:12:08 -0800246 * vmbus_on_event - Handler for events
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -0700247 */
K. Y. Srinivasan6de3d6a2011-03-10 14:05:16 -0800248void vmbus_on_event(unsigned long data)
Hank Janssen3e7ee492009-07-13 16:02:34 -0700249{
Olaf Hering35436482011-04-16 18:50:40 +0200250 u32 dword;
251 u32 maxdword = MAX_NUM_CHANNELS_SUPPORTED >> 5;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700252 int bit;
Olaf Hering35436482011-04-16 18:50:40 +0200253 u32 relid;
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800254 u32 *recv_int_page = vmbus_connection.recv_int_page;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700255
Bill Pemberton454f18a2009-07-27 16:47:24 -0400256 /* Check events */
Olaf Hering242b45a2011-04-16 18:50:39 +0200257 if (!recv_int_page)
258 return;
259 for (dword = 0; dword < maxdword; dword++) {
260 if (!recv_int_page[dword])
261 continue;
262 for (bit = 0; bit < 32; bit++) {
K. Y. Srinivasand9add432011-08-27 11:31:43 -0700263 if (sync_test_and_clear_bit(bit,
264 (unsigned long *)&recv_int_page[dword])) {
Olaf Hering242b45a2011-04-16 18:50:39 +0200265 relid = (dword << 5) + bit;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700266
K. Y. Srinivasand9add432011-08-27 11:31:43 -0700267 if (relid == 0)
K. Y. Srinivasan6d81d332011-05-10 07:55:45 -0700268 /*
269 * Special case - vmbus
270 * channel protocol msg
271 */
Olaf Hering242b45a2011-04-16 18:50:39 +0200272 continue;
K. Y. Srinivasand9add432011-08-27 11:31:43 -0700273
Olaf Hering35436482011-04-16 18:50:40 +0200274 process_chn_event(relid);
Hank Janssen3e7ee492009-07-13 16:02:34 -0700275 }
Olaf Hering242b45a2011-04-16 18:50:39 +0200276 }
Hank Janssen3e7ee492009-07-13 16:02:34 -0700277 }
Hank Janssen3e7ee492009-07-13 16:02:34 -0700278}
279
Hank Janssen3e189512010-03-04 22:11:00 +0000280/*
Haiyang Zhangc6977672011-01-26 12:12:08 -0800281 * vmbus_post_msg - Send a msg on the vmbus's message connection
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -0700282 */
Haiyang Zhangc6977672011-01-26 12:12:08 -0800283int vmbus_post_msg(void *buffer, size_t buflen)
Hank Janssen3e7ee492009-07-13 16:02:34 -0700284{
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800285 union hv_connection_id conn_id;
K. Y. Srinivasan5289d3d2011-08-25 09:49:01 -0700286 int ret = 0;
287 int retries = 0;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700288
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800289 conn_id.asu32 = 0;
290 conn_id.u.id = VMBUS_MESSAGE_CONNECTION_ID;
K. Y. Srinivasan5289d3d2011-08-25 09:49:01 -0700291
292 /*
293 * hv_post_message() can have transient failures because of
294 * insufficient resources. Retry the operation a couple of
295 * times before giving up.
296 */
297 while (retries < 3) {
298 ret = hv_post_message(conn_id, 1, buffer, buflen);
299 if (ret != HV_STATUS_INSUFFICIENT_BUFFERS)
300 return ret;
301 retries++;
302 msleep(100);
303 }
304 return ret;
Hank Janssen3e7ee492009-07-13 16:02:34 -0700305}
306
Hank Janssen3e189512010-03-04 22:11:00 +0000307/*
Haiyang Zhangc6977672011-01-26 12:12:08 -0800308 * vmbus_set_event - Send an event notification to the parent
Greg Kroah-Hartmanfd8b85e2009-08-31 11:40:14 -0700309 */
Haiyang Zhangc6977672011-01-26 12:12:08 -0800310int vmbus_set_event(u32 child_relid)
Hank Janssen3e7ee492009-07-13 16:02:34 -0700311{
Bill Pemberton454f18a2009-07-27 16:47:24 -0400312 /* Each u32 represents 32 channels */
Olaf Hering22356582011-03-21 14:41:37 +0100313 sync_set_bit(child_relid & 31,
Haiyang Zhangda9fcb72011-01-26 12:12:14 -0800314 (unsigned long *)vmbus_connection.send_int_page +
Haiyang Zhang15b2f642011-01-26 12:12:07 -0800315 (child_relid >> 5));
Bill Pemberton7c369f42009-07-29 17:00:11 -0400316
Haiyang Zhangd44890c2010-11-08 14:04:42 -0800317 return hv_signal_event();
Hank Janssen3e7ee492009-07-13 16:02:34 -0700318}