fate#314663 hyper-v memory ballooning support
[opensuse:kernel-source.git] / patches.suse / suse-hv-fate314665-0025-Drivers-hv-Enable-protocol-negotiation-with-win8-hos.patch
1 Patch-mainline: submitted
2 From: <ohering@suse.de>
3 Date: Sat, 1 Dec 2012 06:46:56 -0800
4 Subject: [PATCH 25/28] Drivers: hv: Enable protocol negotiation with win8
5  hosts
6
7 Now that we have implemented all of the Win8 (WS2012) functionality, negotiate
8 Win8 protocol with the host.
9
10 Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
11 Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
12 ---
13  drivers/hv/connection.c | 2 +-
14  include/linux/hyperv.h  | 1 +
15  2 files changed, 2 insertions(+), 1 deletion(-)
16
17 diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c
18 index ac71653..3965537 100644
19 --- a/drivers/hv/connection.c
20 +++ b/drivers/hv/connection.c
21 @@ -194,7 +194,7 @@ int vmbus_connect(void)
22          * version.
23          */
24  
25 -       version = VERSION_WS2008;
26 +       version = VERSION_CURRENT;
27  
28         do {
29                 ret = vmbus_negotiate_version(msginfo, version);
30 diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
31 index 8c3cb1f..5095b06 100644
32 --- a/include/linux/hyperv.h
33 +++ b/include/linux/hyperv.h
34 @@ -434,6 +434,7 @@ hv_get_ringbuffer_availbytes(struct hv_ring_buffer_info *rbi,
35  
36  #define VERSION_INVAL -1
37  
38 +#define VERSION_CURRENT VERSION_WIN8
39  
40  /* Make maximum size of pipe payload of 16K */
41  #define MAX_PIPE_DATA_PAYLOAD          (sizeof(u8) * 16384)
42 -- 
43 1.8.0.1
44