diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2012-03-10 18:32:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-13 17:35:25 -0400 |
commit | e485ceac9ebd43901ef0ce13622385d509e072e7 (patch) | |
tree | 74ba59bdaea967ab3dcc53fabd5dc163b2f2411c /drivers/hv | |
parent | 04bf30115f4ba2beda1efb6cfbae49cdc757f3a9 (diff) |
Drivers: hv: Add new message types to enhance KVP
Add additional KVP (Key Value Pair) protocol messages to
enhance KVP functionality for Linux guests on Hyper-V. As part of this,
patch define an explicit version negoitiation message.
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r-- | drivers/hv/hv_kvp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hv/hv_kvp.c b/drivers/hv/hv_kvp.c index 0ef4c1f6ca54..779109b6f4f0 100644 --- a/drivers/hv/hv_kvp.c +++ b/drivers/hv/hv_kvp.c | |||
@@ -78,7 +78,7 @@ kvp_register(void) | |||
78 | 78 | ||
79 | if (msg) { | 79 | if (msg) { |
80 | kvp_msg = (struct hv_kvp_msg *)msg->data; | 80 | kvp_msg = (struct hv_kvp_msg *)msg->data; |
81 | version = kvp_msg->body.kvp_version; | 81 | version = kvp_msg->body.kvp_register.version; |
82 | msg->id.idx = CN_KVP_IDX; | 82 | msg->id.idx = CN_KVP_IDX; |
83 | msg->id.val = CN_KVP_VAL; | 83 | msg->id.val = CN_KVP_VAL; |
84 | 84 | ||
@@ -122,7 +122,8 @@ kvp_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) | |||
122 | * to the host. But first, cancel the timeout. | 122 | * to the host. But first, cancel the timeout. |
123 | */ | 123 | */ |
124 | if (cancel_delayed_work_sync(&kvp_work)) | 124 | if (cancel_delayed_work_sync(&kvp_work)) |
125 | kvp_respond_to_host(data->data.key, data->data.value, | 125 | kvp_respond_to_host(data->data.key, |
126 | data->data.value, | ||
126 | !strlen(data->data.key)); | 127 | !strlen(data->data.key)); |
127 | } | 128 | } |
128 | } | 129 | } |