Drivers: hv: Enable protocol negotiation with win8 hosts
authorK. Y. Srinivasan <kys@microsoft.com>
Sat, 1 Dec 2012 14:46:56 +0000 (06:46 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 19:41:49 +0000 (11:41 -0800)
Now that we have implemented all of the Win8 (WS2012) functionality, negotiate
Win8 protocol with the host.

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>
drivers/hv/connection.c
include/linux/hyperv.h

index ac71653abb77875556fbd17dc72a8195f14447d7..3965537a659dee9c28228d88471216fd2ff27699 100644 (file)
@@ -194,7 +194,7 @@ int vmbus_connect(void)
         * version.
         */
 
-       version = VERSION_WS2008;
+       version = VERSION_CURRENT;
 
        do {
                ret = vmbus_negotiate_version(msginfo, version);
index 8c3cb1fc34d4e4bcde5349952bd4b7726741ee25..5095b066df94482049ca0b42962db6465e9ea812 100644 (file)
@@ -434,6 +434,7 @@ hv_get_ringbuffer_availbytes(struct hv_ring_buffer_info *rbi,
 
 #define VERSION_INVAL -1
 
+#define VERSION_CURRENT VERSION_WIN8
 
 /* Make maximum size of pipe payload of 16K */
 #define MAX_PIPE_DATA_PAYLOAD          (sizeof(u8) * 16384)