diff options
author | 2017-01-28 12:37:18 -0700 | |
---|---|---|
committer | 2017-01-31 11:05:59 +0100 | |
commit | 1274a690f6b2bd2b37447c47e3062afa8aa43f93 (patch) | |
tree | c001936cee73557c365622d2595922703f1acf6d /drivers/hv/hv_snapshot.c | |
parent | Drivers: hv: vmbus: Use all supported IC versions to negotiate (diff) | |
download | linux-1274a690f6b2bd2b37447c47e3062afa8aa43f93.tar.gz linux-1274a690f6b2bd2b37447c47e3062afa8aa43f93.tar.bz2 linux-1274a690f6b2bd2b37447c47e3062afa8aa43f93.zip |
Drivers: hv: Log the negotiated IC versions.
Log the negotiated IC versions.
Signed-off-by: Alex Ng <alexng@messages.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/hv_snapshot.c')
-rw-r--r-- | drivers/hv/hv_snapshot.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/hv/hv_snapshot.c b/drivers/hv/hv_snapshot.c index d14f10b924a0..bcc03f0748d6 100644 --- a/drivers/hv/hv_snapshot.c +++ b/drivers/hv/hv_snapshot.c @@ -304,7 +304,7 @@ void hv_vss_onchannelcallback(void *context) u32 recvlen; u64 requestid; struct hv_vss_msg *vss_msg; - + int vss_srv_version; struct icmsg_hdr *icmsghdrp; @@ -319,10 +319,15 @@ void hv_vss_onchannelcallback(void *context) sizeof(struct vmbuspipe_hdr)]; if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) { - vmbus_prep_negotiate_resp(icmsghdrp, + if (vmbus_prep_negotiate_resp(icmsghdrp, recv_buffer, fw_versions, FW_VER_COUNT, vss_versions, VSS_VER_COUNT, - NULL, NULL); + NULL, &vss_srv_version)) { + + pr_info("VSS IC version %d.%d\n", + vss_srv_version >> 16, + vss_srv_version & 0xFFFF); + } } else { vss_msg = (struct hv_vss_msg *)&recv_buffer[ sizeof(struct vmbuspipe_hdr) + |