diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2012-05-12 16:44:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-14 11:59:31 -0400 |
commit | c836d0ab70acf7b7bd2b698278e8abae9e6d9978 (patch) | |
tree | 5e3c677b2314e6643785133569950d29cbf4dd7f /include/linux/hyperv.h | |
parent | a360530012766e5fd752bd6538c8cc6349846781 (diff) |
Drivers: hv: util: Properly handle version negotiations.
The current version negotiation code is not "future proof". Fix this
by allowing each service the flexibility to either specify the highest
version it can support or it can support the highest version number
the host is offering.
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 'include/linux/hyperv.h')
-rw-r--r-- | include/linux/hyperv.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 5852545e6bba..22172bd43745 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h | |||
@@ -1035,8 +1035,10 @@ struct hyperv_service_callback { | |||
1035 | void (*callback) (void *context); | 1035 | void (*callback) (void *context); |
1036 | }; | 1036 | }; |
1037 | 1037 | ||
1038 | #define MAX_SRV_VER 0x7ffffff | ||
1038 | extern void vmbus_prep_negotiate_resp(struct icmsg_hdr *, | 1039 | extern void vmbus_prep_negotiate_resp(struct icmsg_hdr *, |
1039 | struct icmsg_negotiate *, u8 *); | 1040 | struct icmsg_negotiate *, u8 *, int, |
1041 | int); | ||
1040 | 1042 | ||
1041 | int hv_kvp_init(struct hv_util_service *); | 1043 | int hv_kvp_init(struct hv_util_service *); |
1042 | void hv_kvp_deinit(void); | 1044 | void hv_kvp_deinit(void); |