Merge tag 'hyperv-next-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyper...
[linux-2.6-microblaze.git] / drivers / hv / hv_util.c
index a4e8d96..05566ec 100644 (file)
@@ -500,6 +500,9 @@ static void heartbeat_onchannelcallback(void *context)
        }
 }
 
+#define HV_UTIL_RING_SEND_SIZE VMBUS_RING_SIZE(3 * HV_HYP_PAGE_SIZE)
+#define HV_UTIL_RING_RECV_SIZE VMBUS_RING_SIZE(3 * HV_HYP_PAGE_SIZE)
+
 static int util_probe(struct hv_device *dev,
                        const struct hv_vmbus_device_id *dev_id)
 {
@@ -530,8 +533,8 @@ static int util_probe(struct hv_device *dev,
 
        hv_set_drvdata(dev, srv);
 
-       ret = vmbus_open(dev->channel, 4 * HV_HYP_PAGE_SIZE,
-                        4 * HV_HYP_PAGE_SIZE, NULL, 0, srv->util_cb,
+       ret = vmbus_open(dev->channel, HV_UTIL_RING_SEND_SIZE,
+                        HV_UTIL_RING_RECV_SIZE, NULL, 0, srv->util_cb,
                         dev->channel);
        if (ret)
                goto error;
@@ -590,8 +593,8 @@ static int util_resume(struct hv_device *dev)
                        return ret;
        }
 
-       ret = vmbus_open(dev->channel, 4 * HV_HYP_PAGE_SIZE,
-                        4 * HV_HYP_PAGE_SIZE, NULL, 0, srv->util_cb,
+       ret = vmbus_open(dev->channel, HV_UTIL_RING_SEND_SIZE,
+                        HV_UTIL_RING_RECV_SIZE, NULL, 0, srv->util_cb,
                         dev->channel);
        return ret;
 }